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
Is your feature request related to a problem? Please describe.
There's no straight forward way to tell if a view update is immediately followed by a transition.
E.g In case of a pending transaction: input is populated with data but the focus remains, the data models aren't updated until focus is removed.
If we transition out of the current view in this state, a pending transaction exists to update the data models before the transition executes, this is mostly intended behaviour aside from the fact that there are now going to be 2 view updates via ViewInstance.hooks.onUpdate hook
1 view update for the new view being transitioned into, the other view update being the view that was transitioned from.
There's not inherently a problem with updating both views, but it is inefficient and the UI portion of the old view is stale and irrelevant. The update cannot be completely eliminated as the data could still be relevant, but the onUpdate hook call for the old ViewInstance can be skipped
Describe the solution you'd like
This could be done in a number of ways:
tracking transition status when views are attempted to be updated
or
checking the view to be updated against current view being shown
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
There's no straight forward way to tell if a view update is immediately followed by a transition.
E.g In case of a pending transaction: input is populated with data but the focus remains, the data models aren't updated until focus is removed.
If we transition out of the current view in this state, a pending transaction exists to update the data models before the transition executes, this is mostly intended behaviour aside from the fact that there are now going to be 2 view updates via
ViewInstance.hooks.onUpdate
hook1 view update for the new view being transitioned into, the other view update being the view that was transitioned from.
There's not inherently a problem with updating both views, but it is inefficient and the UI portion of the old view is stale and irrelevant. The update cannot be completely eliminated as the data could still be relevant, but the
onUpdate
hook call for the oldViewInstance
can be skippedDescribe the solution you'd like
This could be done in a number of ways:
or
The text was updated successfully, but these errors were encountered: