-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On update race condition #471
Conversation
core/player/src/view/view.ts
Outdated
resolverOptions.flowController.current?.hooks.transition.tap("view", (state1, state2) => { | ||
this.transitioning = true; | ||
}) | ||
resolverOptions.flowController.current?.hooks.afterTransition.tap("view", (flowInstance) => { | ||
this.transitioning = false; | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll want to use the .flow
hook on the flow-controller instead of using current
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while accessible. the call of that hook takes place earlier than the tap due to flow/view scope diff, so I moved the logic out to the view controller
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #471 +/- ##
=======================================
Coverage 91.93% 91.93%
=======================================
Files 339 339
Lines 26831 26831
Branches 1945 1945
=======================================
Hits 24668 24668
Misses 2149 2149
Partials 14 14 ☔ View full report in Codecov by Sentry. |
/canary |
Change Type (required)
Indicate the type of change your pull request is:
patch
minor
major
Does your PR have any documentation updates?
📦 Published PR as canary version:
0.8.1--canary.471.16682
Try this version out locally by upgrading relevant packages to 0.8.1--canary.471.16682