-
Notifications
You must be signed in to change notification settings - Fork 5
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
Not working with Context - createStore
#12
Comments
I've made following workaround with improved typing, also it doesn't trigger ESLint's React hooks rule:
|
Albert-Gao
added a commit
that referenced
this issue
May 19, 2024
chore: 🌱 upgraded all pkgs to the latest, all works (Thanks godzzo and Kamilcat) fix: 📈 now the Context usage works, also fixed the types close Not working with Context - createStore #12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I tried to use with
createStore
, If I see it correctly it is only for BoundStore.So I created a little modification for it. It is not nice because I have to disable the
rules-of-hooks
.(I should decouple the ContextProvider too, and review typing...)
Stackblitz Sample
What do you think?
store.ts
sample:util.tsx
file:The text was updated successfully, but these errors were encountered: