We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using Navigation.updateProps(...), untouched props should remain unchanged, but they're being set to undefined.
Navigation.updateProps(...)
undefined
@guyca pointed out that the issue might be caused by a missing spread operator in ComponentWrapper::setProps(...)
{ foo: number, bar: string }
{ foo: 0, bar: 'hello' }
render
console.log(JSON.stringify(props)) // outputs: { foo: 0, bar: 'hello' }
Navigation.updateProps(SCREEN_COMPONENT_ID, { foo: 1 })
console.log(JSON.stringify(props)) // outputs: { foo: 1, bar: undefined }
The text was updated successfully, but these errors were encountered:
UpdateProps now keeps the old props. (#6538)
fff6d23
This PR fixes #6536.
Successfully merging a pull request may close this issue.
Issue Description
When using
Navigation.updateProps(...)
, untouched props should remain unchanged, but they're being set toundefined
.Steps to Reproduce / Code Snippets / Screenshots
render
function of component:render
function of component:Environment
The text was updated successfully, but these errors were encountered: