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
https://codesandbox.io/s/clever-cerf-588tt9
Every time I click the button to update state in Age component, the Name component console.count to Console.
console.count
The text was updated successfully, but these errors were encountered:
That's how it works. It renders then bails out, and there's no commit (which is a costly task.)
Wrapping with useEffect leads to intuitive result. https://codesandbox.io/s/optimistic-field-qspqd9
useEffect
See also #177
Sorry, something went wrong.
Closing as stale.
No branches or pull requests
https://codesandbox.io/s/clever-cerf-588tt9
Every time I click the button to update state in Age component, the Name component
console.count
to Console.The text was updated successfully, but these errors were encountered: