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

fix: nested islands ssr #151

Merged
merged 4 commits into from
Apr 16, 2024
Merged

fix: nested islands ssr #151

merged 4 commits into from
Apr 16, 2024

Conversation

kosei28
Copy link
Contributor

@kosei28 kosei28 commented Apr 15, 2024

fix #150

With this change, nested islands will behave as one island.

New HTML:
image

@yusukebe
Copy link
Member

Hi @kosei28 !

Awesome! This may work great. I've left a comment and updated the test by myself.

@kosei28 kosei28 requested a review from yusukebe April 16, 2024 10:59
@yusukebe yusukebe changed the title fix nested islands ssr fix: nested islands ssr Apr 16, 2024
Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Member

Hi @kosei28

Looks good! I'll merge it now. Thank you for your contribution!

@yusukebe yusukebe merged commit 2a72655 into honojs:main Apr 16, 2024
2 checks passed
usualoma added a commit to usualoma/honox that referenced this pull request Apr 29, 2024
yusukebe pushed a commit that referenced this pull request May 3, 2024
)

* Revert "fix: check it should add `insideIslandSuffix` or not (#153)"

This reverts commit 0f62853.

* Revert "fix: nested islands ssr (#151)"

This reverts commit 2a72655.

* chore(deps): add dependency on jsonc-parser

* fix(jsx): fix nested islands output by using honox/vite/components

* test: add test for nested islands output

* test: add alias for testing

* refactor: tweak jsxImportSource normalization timing

* test: add test for nested island components output

* feat: Enable to specify the React API import source

* test: add prettier-ignore to test cases

* test: replace component path backslashes with forward slashes

* refactor: refactor directory structure for honox-island component

* test: update test config

* refactor: oops, we should use vite instead of site
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.

Nested islands hydrate error
2 participants