-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
children[0] is not a function #21
Comments
Is there anyone can help me? That will be appreciated. |
Forgive me, I'm a bit rusty on this. The issue is fixed if you remove You can do this as an alternative: const App = observer(() => {
const store = useStore();
return (
<div>{store.a}</div>
);
}); |
Thanks! Can useMemo and useCallback work when component is be wrapped ? |
it because the code have bug where the code location is Observer origin
if you only have one child, children is not a array, so fix it by after
finally that is perfect success |
the sample code to reproduce the issue:
https://codesandbox.io/s/wonderful-edison-147v9
What should I do if I want inject one store and use it by context?
The text was updated successfully, but these errors were encountered: