Skip to content
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

Support component Islands (Astro Islands) #291

Open
unional opened this issue Apr 24, 2023 · 1 comment
Open

Support component Islands (Astro Islands) #291

unional opened this issue Apr 24, 2023 · 1 comment

Comments

@unional
Copy link
Contributor

unional commented Apr 24, 2023

https://docs.astro.build/en/concepts/islands/

Islands are rendered in isolation.
That means sharing application instance through DOM state attachment (React Context) does not work.

One solution is to use https://github.com/unional/global-store instead.

Maybe just-web needs to add a gizmo for it?

@unional
Copy link
Contributor Author

unional commented Apr 24, 2023

The issue is how can gizmo like reactGizmo supports it.
It need to use global-store, but then other library gizmo like solidGizmo needs to use the same store.

That's why the store should be supplied by just-web.

Either directly in @just-web/app, or
@just-web/states, or
libraries/context (@just-web/context)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant