You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The types names may be a bit misleading, because they can be used interchangeably.
It doesn't matter if first one if FROM or TO. They are only used to detect the "other" one from the pair.
Without it I have no idea how to detect that one element was on "previous" screen and second one is on "next" screen, because there is no concept of screens and transitions between them.
We cannot rely on things like position or hierarchy change. Not every hierarchy change is a "screen" change and that would make it transition from its old position to its new position (or old/new places in hierarchy).
Maybe a better idea would be to change it to something more generic like screen: String so one can specify values like:
"list" on one screen
"details" on second screen
For now I stayed with FROM and TO because it makes it super simple to choose one o two enum values.
The text was updated successfully, but these errors were encountered:
The types names may be a bit misleading, because they can be used interchangeably.
It doesn't matter if first one if
FROM
orTO
. They are only used to detect the "other" one from the pair.Without it I have no idea how to detect that one element was on "previous" screen and second one is on "next" screen, because there is no concept of screens and transitions between them.
We cannot rely on things like position or hierarchy change. Not every hierarchy change is a "screen" change and that would make it transition from its old position to its new position (or old/new places in hierarchy).
Maybe a better idea would be to change it to something more generic like
screen: String
so one can specify values like:For now I stayed with
FROM
andTO
because it makes it super simple to choose one o two enum values.The text was updated successfully, but these errors were encountered: