-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
[Flight] Add failing test for dedupe resolution on blocked models #29200
[Flight] Add failing test for dedupe resolution on blocked models #29200
Conversation
Triggered by vercel/next.js#66033 I was suspecting that the bug was introduced with facebook#28996, but I could not make the test succeed on a commit before that PR, so maybe this assumption is wrong.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Comparing: 5cc9f69...00af602 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
|
@@ -247,6 +247,55 @@ describe('ReactFlightDOMBrowser', () => { | |||
expect(container.innerHTML).toBe('<span>Hello, World!</span>'); | |||
}); | |||
|
|||
it('should resolve deduped objects within the same model root when it is blocked', async () => { |
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.
maybe do
it('should resolve deduped objects within the same model root when it is blocked', async () => { | |
it.failing('should resolve deduped objects within the same model root when it is blocked', async () => { |
so that it passes CI?
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.
I tried that already in #29129, but the Jest setup in the React repo does not seem to support this.
…locked state (#29201) Fixes #29200 The cyclic state might have added listeners that will still need to be invoked. This happens if we have a cyclic reference AND end up blocked. We have already cleared these before entering the parsing when we enter the CYCLIC state so we they already have the right type. If listeners are added during this phase they should carry over to the blocked state. --------- Co-authored-by: Hendrik Liebau <mail@hendrik-liebau.de>
Triggered by vercel/next.js#66033
I was suspecting that the bug was introduced with #28996, but I could not make the test succeed on a commit before that PR, so maybe this assumption (or the reproduction) is wrong.EDIT: With a revert of #28996, the test does succeed.