Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> share context between islands

This is extremely easy to solve with Astro:

https://docs.astro.build/en/recipes/sharing-state-islands/



>In Astro, you can nest Astro Components inside Client Islands, but if those include more Client Islands, they’ll still be seen as separate roots by your framework (e.g. React). This is why nesting interactive behavior doesn’t compose as naturally as in client apps, e.g. React or Vue context can’t be passed between Astro islands.

I agree with what the link author wrote here. Nanostores is great (s/o EvilMartians), but it's not as natural or easy to use as each respective framework's context solution.


You're right. Sorry I misunderstood. For some reason instead of "context" I read "state".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: