Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: conditional ssr (minimal API only) #534

Merged
merged 10 commits into from
Feb 28, 2024
Merged

Conversation

dai-shi
Copy link
Owner

@dai-shi dai-shi commented Feb 25, 2024

Copy link

vercel bot commented Feb 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
waku ⬜️ Ignored (Inspect) Visit Preview Feb 28, 2024 2:14am

Copy link

codesandbox-ci bot commented Feb 25, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dai-shi dai-shi marked this pull request as ready for review February 28, 2024 02:18
@dai-shi dai-shi mentioned this pull request Feb 28, 2024
@dai-shi dai-shi changed the title feat: conditional ssr (for now, minimal API only) feat: conditional ssr (minimal API only) Feb 28, 2024
@@ -10,7 +10,7 @@ const rootElement = (
</StrictMode>
);

if (import.meta.env.WAKU_HYDRATE) {
if (document.body.dataset.hydrate) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this isn't optimal.
We may revisit this in the future, or maybe it's okay with the Waku target.

@dai-shi
Copy link
Owner Author

dai-shi commented Feb 28, 2024

This is technically a breaking change, but the migration is easy.

@dai-shi dai-shi merged commit 591118f into main Feb 28, 2024
28 checks passed
@dai-shi dai-shi deleted the conditional-ssr-example-06 branch February 28, 2024 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant