Open ouuan opened 1 year ago
iles
vite
When the Markdown <slot> is after some kind (I'm not sure which) of island, its HMR does not work.
<slot>
https://github.com/ouuan/iles-issue-232-reproduction
Run pnpm dev and edit src/pages/index.mdx, only the random number changes, and the Markdown content does not change.
pnpm dev
src/pages/index.mdx
If the island and the <slot> are in a reversed order, or client:load is removed, or the prop is a fixed number, the HMR will work.
client:load
The real issue is that the HMR in my blog does not work after https://github.com/ouuan/iles-blog/commit/863909c49d4b0948ddc894ade4e2bdb2019fd74d, and I managed to get the above minimal reproduction.
Thanks for the report, I'll try to look into it when I have some time.
iles
andvite
.Description 📖
When the Markdown
<slot>
is after some kind (I'm not sure which) of island, its HMR does not work.Reproduction 🐞
https://github.com/ouuan/iles-issue-232-reproduction
Run
pnpm dev
and editsrc/pages/index.mdx
, only the random number changes, and the Markdown content does not change.If the island and the
<slot>
are in a reversed order, orclient:load
is removed, or the prop is a fixed number, the HMR will work.The real issue is that the HMR in my blog does not work after https://github.com/ouuan/iles-blog/commit/863909c49d4b0948ddc894ade4e2bdb2019fd74d, and I managed to get the above minimal reproduction.