Skip to content

Quick fix to the return top level problem - #8029

Merged
sebmarkbage merged 1 commit into
react:masterfrom
sebmarkbage:fiberreturnfromtoprender
Oct 21, 2016
Merged

sebmarkbage merged 1 commit into
react:masterfrom
sebmarkbage:fiberreturnfromtoprender

Conversation

@sebmarkbage

@sebmarkbage sebmarkbage commented Oct 21, 2016 •

Copy link
Copy Markdown
Contributor

This doesn't deal with the fact that work is usually deferred so this will return null for first render (except in sync tests). It also doesn't deal with top levels being fragments etc. This needs to be unified with refs and findDOMNode better.

We also need to add incremental tests to ensure that the value is expected when render is deferred.

This is enough to unblock unit tests though.

However, this does expose that we reactComponentExpect and ReactTestUtils doesn't work very well with Fiber.

@gaearon

gaearon commented Oct 21, 2016

Copy link
Copy Markdown
Collaborator

ok

This doesn't deal with the fact that work is usually deferred
so this will return null for first render (except in sync tests).
It also doesn't deal with top levels being fragments etc.
It doesn't deal with the host instance type being a wrapper
around the public instance. This needs to be unified with refs
and findDOMNode better.

However, this does expose that we reactComponentExpect and
ReactTestUtils doesn't work very well with Fiber.
@sebmarkbage
sebmarkbage force-pushed the fiberreturnfromtoprender branch from 04ea352 to 6e7c89e Compare October 21, 2016 18:58
@sebmarkbage
sebmarkbage merged commit 8cac523 into react:master Oct 21, 2016
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
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.

3 participants