ElMassimo/iles

Markdown HMR sometimes does not work

Opened this issue ยท 1 comments

ouuan commented

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 edit src/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, or client: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 ouuan/iles-blog@863909c, 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.