Glob import client islands by default #39
bensmithett
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
tropical-islands requires you to manually import and list your hydratable island components in your client bundle. It's not difficult, but it does feel very manual.
In Tropical's
entry-client.jsx
we could glob import something likecomponents/**/*.client.jsx
and build that list automatically...Pros
.client.jsx
matches React server components' conventionCons
Alternatively I could just leave that approach in
entry-client.jsx
as a commented out example 🤔Beta Was this translation helpful? Give feedback.
All reactions