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

support concurrent prepasses #37

Merged
merged 3 commits into from
Jan 17, 2020
Merged

support concurrent prepasses #37

merged 3 commits into from
Jan 17, 2020

Conversation

JoviDeCroock
Copy link
Contributor

The problem is that we have a new hook after we throw inside of a custom-hook, this results in the useMemo hook (for this scenario) being a conditional hook. This is a "violation" against the rules-of-hooks however this should be supported in React as well since they'll probably throw away the result of that render.

Fixes: #34

@codecov-io
Copy link

codecov-io commented Jan 17, 2020

Codecov Report

Merging #37 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
+ Coverage    97.3%   97.31%   +<.01%     
==========================================
  Files          10       10              
  Lines         483      484       +1     
  Branches       87       87              
==========================================
+ Hits          470      471       +1     
  Misses          9        9              
  Partials        4        4
Impacted Files Coverage Δ
src/internals/dispatcher.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e82ad0c...b443da4. Read the comment docs.

@kitten kitten merged commit 2fcea59 into master Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dispatcher loses hooks execution order
3 participants