There are tons of options for sharing state between islands.
The docs show how to use nanostores but you can use other libs like vue refs, etc.
https://docs.astro.build/en/recipes/sharing-state-islands/