-
Notifications
You must be signed in to change notification settings - Fork 49.6k
Call setState callbacks enqueued in cWM #8207
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
Conversation
expect(x).toBe(y); | ||
// We expose refs with a bunch of internal props. Yuck. But this should not | ||
// be TopLevelWrapper. | ||
expect(x._currentElement.props.foo).toBe('foo'); |
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.
Can we check x.props.foo
if this is fiber while we're at it?
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.
This is RN so I don't think we can right now.
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.
It will fail regardless now but once we fix RN this could pass. Otherwise we later have to go through this test. 15 minutes saved later.
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.
Yeah but the module is called ReactDOMFeatureFlags. Want me to do it anyway?
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.
Actually I will just change this to make sure it is the same as a ref on the View.
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.
Oh I see what you're saying. Just land it as is NBD.
Also fixes return value of ReactNativeMount and moves that callback to be after cDM instead of after all updates.
expect(UIManager.updateView).toBeCalledWith(3, 'View', { foo: 'bar' }); | ||
}); | ||
|
||
it('should be able to create and update a native component', () => { |
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.
this name is duplicated. a bit confusing.
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.
copy pasta, will fix
Is this comment outdated now and can be removed? |
Also fixes return value of ReactNativeMount and moves that callback to be after cDM instead of after all updates.
Depends on #8204.
Also fixes return value of ReactNativeMount and moves that callback to be after cDM instead of after all updates.