Skip to content
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

Merged
merged 19 commits into from
Aug 9, 2024
Merged

On update race condition #471

merged 19 commits into from
Aug 9, 2024

Conversation

brocollie08
Copy link
Contributor

@brocollie08 brocollie08 commented Aug 2, 2024

Change Type (required)

Indicate the type of change your pull request is:

  • patch
  • minor
  • major

Does your PR have any documentation updates?

  • Updated docs
  • No Update needed
  • Unable to update docs
📦 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

@brocollie08 brocollie08 added the patch Increment the patch version when merged label Aug 2, 2024
Comment on lines 105 to 110
resolverOptions.flowController.current?.hooks.transition.tap("view", (state1, state2) => {
this.transitioning = true;
})
resolverOptions.flowController.current?.hooks.afterTransition.tap("view", (flowInstance) => {
this.transitioning = false;
})
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.93%. Comparing base (ebdcb61) to head (2dbd20e).

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.
📢 Have feedback on the report? Share it here.

@brocollie08
Copy link
Contributor Author

/canary

sugarmanz
sugarmanz previously approved these changes Aug 8, 2024
@brocollie08 brocollie08 marked this pull request as ready for review August 9, 2024 18:28
@brocollie08 brocollie08 merged commit bfd6a11 into main Aug 9, 2024
11 checks passed
@brocollie08 brocollie08 deleted the onUpdate-race-condition branch August 9, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants