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
Fix/useStore #431
Fix/useStore #431
Conversation
👷 Deploy request for effector-docs pending review. 🔨 Explore the source changes: b404282 |
3568230
to
8291dac
Compare
Because useState is a wrapper around useReducer we can directly take useReducer. |
|
||
const Display = () => { | ||
const store = useStore($store) | ||
fn() |
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.
There should be a proof that issues does exists at all: your example reveal that current implementation works as expected
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.
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.
All good, big thanks 👍 👍
Two different workarounds in two commits