-
Notifications
You must be signed in to change notification settings - Fork 29
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
Can islands support shared state? #74
Comments
Hi @aulneau Thank you for using HonoX! The sharing of states and variables between Islands is not supported. I knew there would be requests for it, but at first, we would not implement it. We could look at that if you could create a minimal project doing what you want to archive with React Query, though I don't know if it can be done! |
Sure thing, here is the repo: https://github.com/aulneau/honox-react-query I think if islands can share state, this will be such a big feature! I have spent the last few days trying out a bunch of alternative jsx/react meta frameworks, and honox is the best by far! Ideally all islands would share the same client state/env, so things like useContext work Happy to help in whatever way I can :) provider.tsx |
I've also noticed that islands specifically need |
Thanks! I'll check it, and #80 might resolve the issue.
@usualoma suggests the PR #81 (but that is about |
Hi there! Really loving honox!
I'm experimenting with using it as a react renderer and am running into issues with islands sharing context or state. Specifically I'm trying to wrap some islands that use react query with a parent island that sets the query client context.
Should this be possible or am I misunderstanding now islands should behave?
Thanks so much!
The text was updated successfully, but these errors were encountered: