Skip to content
Discussion options

You must be logged in to vote

If I were using islands, I would probably use the ProtectedRoute component for any protected routes and let the question of whether it's authorized or not be handled on the server. In general, the "islands" approach is about moving things back toward a more traditional multi-page/server-rendered application, while making it easy to opt into small interactive portions of the page. This is why, for example, the entire router isn't shipped to the client — once you enable client-side routing you pretty much need to compile all of every page into the WASM binary, which is what islands are trying to avoid. Since you'll need to go back to the server while navigating anyway, it usually makes the …

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@tqq1994516
Comment options

@gbj
Comment options

gbj Feb 13, 2025
Maintainer

@tqq1994516
Comment options

@gbj
Comment options

gbj Feb 14, 2025
Maintainer

Answer selected by tqq1994516
@tqq1994516
Comment options

@tqq1994516
Comment options

@tqq1994516
Comment options

@gbj
Comment options

gbj Feb 15, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants