Skip to content
Discussion options

You must be logged in to vote

You can't really, unfortunately; they depend on router APIs that are not available in the client in islands mode.

Your example, for what it's worth, can be rewritten fairly easily to move the button into a separate island. This is what most of the technique of using islands consists of: figuring out the right way to layer/interleave islands and non-islands so that the islands are as small as possible. You almost never want whole pages to be islands: that really reduces the benefit.

Of course if you literally need the <A> in an island, then it's just not workable. But you can replicate parts of how the <A> component works yourself, based on built-in browser APIs.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@myrpg-fun
Comment options

Answer selected by myrpg-fun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants