GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [Fizz] Fix reentrancy bug by sebmarkbage · Pull Request #21270 · react/react Conversation
Contributor
This one is subtle but what happens is that if we finish a boundary, we can cancel the pending fallback, that can complete the root which can trigger user code which can force flushing which can then set the "parentFlushed" flags to something we didn't expect.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
sebmarkbage
commented
Uh oh!
There was an error while loading. Please reload this page.
sebmarkbage
marked this pull request as draft
|
There was an error while loading. Please reload this page.
|
Comparing: ea155e2...5781269 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There's also an issue if we try to schedule something to be client rendered if its fallback hasn't rendered yet. So we don't do it in that case.
ec2e4f2 to
5781269
Compare
Summary: This sync includes the following changes: - **[f7cdc89](react/react@f7cdc8936 )**: Also turn off enableSyncDefaultUpdates in RN test renderer ([#21293](react/react#21293)) //<Ricky>// - **[4c9eb2a](react/react@4c9eb2af1 )**: Add dynamic flags to React Native ([#21291](react/react#21291)) //<Ricky>// - **[9eddfbf](react/react@9eddfbf5a )**: [Fizz] Two More Fixes ([#21288](react/react#21288)) //<Sebastian Markbåge>// - **[11b0759](react/react@11b07597e )**: Fix classes ([#21283](react/react#21283)) //<Sebastian Markbåge>// - **[96d00b9](react/react@96d00b9bb )**: [Fizz] Random Fixes ([#21277](react/react#21277)) //<Sebastian Markbåge>// - **[81ef539](react/react@81ef53953 )**: Always insert a dummy node with an ID into fallbacks ([#21272](react/react#21272)) //<Sebastian Markbåge>// - **[a4a940d](react/react@a4a940d7a )**: [Fizz] Add unsupported Portal/Scope components ([#21261](react/react#21261)) //<Sebastian Markbåge>// - **[f4d7a0f](react/react@f4d7a0f1e )**: Implement useOpaqueIdentifier ([#21260](react/react#21260)) //<Sebastian Markbåge>// - **[dde875d](react/react@dde875dfb )**: [Fizz] Implement Hooks ([#21257](react/react#21257)) //<Sebastian Markbåge>// - **[a597c2f](react/react@a597c2f5d )**: [Fizz] Fix reentrancy bug ([#21270](react/react#21270)) //<Sebastian Markbåge>// - **[15e779d](react/react@15e779d92 )**: Reconciler should inject its own version into DevTools hook ([#21268](react/react#21268)) //<Brian Vaughn>// - **[4f76a28](react/react@4f76a28c9 )**: [Fizz] Implement New Context ([#21255](react/react#21255)) //<Sebastian Markbåge>// - **[82ef450](react/react@82ef450e0 )**: remove obsolete SharedArrayBuffer ESLint config ([#21259](react/react#21259)) //<Henry Q. Dineen>// - **[dbadfa2](react/react@dbadfa2c3 )**: [Fizz] Classes Follow Up ([#21253](react/react#21253)) //<Sebastian Markbåge>// - **[686b635](react/react@686b635b7 )**: Prevent reading canonical property of null ([#21242](react/react#21242)) //<Joshua Gross>// - **[bb88ce9](react/react@bb88ce95a )**: Bugfix: Don't rely on `finishedLanes` for passive effects ([#21233](react/react#21233)) //<Andrew Clark>// - **[343710c](react/react@343710c92 )**: [Fizz] Fragments and Iterable support ([#21228](react/react#21228)) //<Sebastian Markbåge>// - **[933880b](react/react@933880b45 )**: Make time-slicing opt-in ([#21072](react/react#21072)) //<Ricky>// - **[b0407b5](react/react@b0407b55f )**: Support more empty types ([#21225](react/react#21225)) //<Sebastian Markbåge>// - **[3971371](react/react@39713716a )**: Merge isObject branches ([#21226](react/react#21226)) //<Sebastian Markbåge>// - **[8a4a59c](react/react@8a4a59c72 )**: Remove textarea special case from child fiber ([#21222](react/react#21222)) //<Sebastian Markbåge>// - **[dc108b0](react/react@dc108b0f5 )**: Track which fibers scheduled the current render work ([#15658](react/react#15658)) //<Brian Vaughn>// - **[6ea7491](react/react@6ea749170 )**: Fix typo in comment ([#21214](react/react#21214)) //<inokawa>// - **[b38ac13](react/react@b38ac13f9 )**: DevTools: Add post-commit hook ([#21183](react/react#21183)) //<Brian Vaughn>// - **[b943aeb](react/react@b943aeba8 )**: Fix: Passive effect updates are never sync ([#21215](react/react#21215)) //<Andrew Clark>// - **[d389c54](react/react@d389c54d1 )**: Offscreen: Use JS stack to track hidden/unhidden subtree state ([#21211](react/react#21211)) //<Brian Vaughn>// - **[c486dc1](react/react@c486dc1a4 )**: Remove unnecessary processUpdateQueue ([#21199](react/react#21199)) //<Sebastian Markbåge>// - **[cf45a62](react/react@cf45a623a )**: [Fizz] Implement Classes ([#21200](react/react#21200)) //<Sebastian Markbåge>// - **[75c6165](react/react@75c616554 )**: Include actual type of `Profiler#id` on type mismatch ([#20306](react/react#20306)) //<Sebastian Silbermann>// - **[1214b30](react/react@1214b302e )**: test: Fix "couldn't locate all inline snapshots" ([#21205](react/react#21205)) //<Sebastian Silbermann>// - **[1a02d27](react/react@1a02d2792 )**: style: delete unused isHost check ([#21203](react/react#21203)) //<wangao>// - **[782f689](react/react@782f689ca )**: Don't double invoke getDerivedStateFromProps for module pattern ([#21193](react/react#21193)) //<Sebastian Markbåge>// - **[e90c76a](react/react@e90c76a65 )**: Revert "Offscreen: Use JS stack to track hidden/unhidden subtree state" ([#21194](react/react#21194)) //<Brian Vaughn>// - **[1f8583d](react/react@1f8583de8 )**: Offscreen: Use JS stack to track hidden/unhidden subtree state ([#21192](react/react#21192)) //<Brian Vaughn>// - **[ad6e6ec](react/react@ad6e6ec7b )**: [Fizz] Prepare Recursive Loop for More Types ([#21186](react/react#21186)) //<Sebastian Markbåge>// - **[172e89b](react/react@172e89b4b )**: Reland Remove redundant initial of isArray ([#21188](react/react#21188)) //<Sebastian Markbåge>// - **[7c1ba2b](react/react@7c1ba2b57 )**: Proposed new Suspense layout effect semantics ([#21079](react/react#21079)) //<Brian Vaughn>// - **[316aa36](react/react@316aa3686 )**: [Scheduler] Fix de-opt caused by out-of-bounds access ([#21147](react/react#21147)) //<Andrey Marchenko>// - **[b4f119c](react/react@b4f119cdf )**: Revert "Remove redundant initial of isArray ([#21163](react/react#21163))" //<Sebastian Markbage>// - **[c031970](react/react@c03197063 )**: Revert "apply prettier ([#21165](react/react#21165))" //<Sebastian Markbage>// - **[94fd121](react/react@94fd1214d )**: apply prettier ([#21165](react/react#21165)) //<Behnam Mohammadi>// - **[b130a0f](react/react@b130a0f5c )**: Remove redundant initial of isArray ([#21163](react/react#21163)) //<Behnam Mohammadi>// - **[2c9fef3](react/react@2c9fef32d )**: Remove redundant initial of hasOwnProperty ([#21134](react/react#21134)) //<Behnam Mohammadi>// - **[1cf9978](react/react@1cf9978d8 )**: Don't pass internals to callbacks ([#21161](react/react#21161)) //<Sebastian Markbåge>// - **[b9e4c10](react/react@b9e4c10e9 )**: [Fizz] Implement all the DOM attributes and special cases ([#21153](react/react#21153)) //<Sebastian Markbåge>// - **[f8ef4ff](react/react@f8ef4ff57 )**: Flush discrete passive effects before paint ([#21150](react/react#21150)) //<Andrew Clark>// - **[b48b38a](react/react@b48b38af6 )**: Support nesting of startTransition and flushSync (alt) ([#21149](react/react#21149)) //<Sebastian Markbåge>// Changelog: [General][Changed] - React Native sync for revisions c9aab1c...f7cdc89 jest_e2e[run_all_tests] Reviewed By: rickhanlonii Differential Revision: D27740113 fbshipit-source-id: 6e27204d78e3e16ed205170006cb97c0d6bfa957
* Fix reentrancy bug * Fix another reentrancy bug There's also an issue if we try to schedule something to be client rendered if its fallback hasn't rendered yet. So we don't do it in that case.
* Fix reentrancy bug * Fix another reentrancy bug There's also an issue if we try to schedule something to be client rendered if its fallback hasn't rendered yet. So we don't do it in that case.
* Fix reentrancy bug * Fix another reentrancy bug There's also an issue if we try to schedule something to be client rendered if its fallback hasn't rendered yet. So we don't do it in that case.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.