Fix: React - Use "createRoot" instead of "hydrateRoot" for client:only#3337
Conversation
🦋 Changeset detectedLatest commit: b04de83 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
|
|
Welp, turns out we can use this from personal testing! Nested component islands and children are just as stable using |
natemoo-re
left a comment
There was a problem hiding this comment.
LGTM! Few comments about future-proofing the last argument.
…ly` (withastro#3337) * feat: pass "client" directive to clientEntrypoints * refactor: remove hydration warning suppression react 17 * feat: remove hydration warning suppression react 18 * chore: changeset * fix: change metadata to options bag
Changes
client:only#3010clientdirective to client renderersclient.jsto usecreateRootonclient:onlyinstead of suppressing hydration warnings (spoiler: they aren't suppressed!)client-17.jsto userenderonclient:onlyinstead of suppressing hydration warningsTesting
N/A, check your console 😉
Docs
N/A