You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- render pre-fetched `MemoEmbed` and `MemoEmbedList` markup during
SSR/SSG instead of waiting for hydration
- replace imperative `innerHTML` injection with direct render output and
memoized HTML generation
- add server-render regression tests and document the SSR behavior
## Testing
- pnpm validate
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Server-renders pre-fetched `MemoEmbed` and `MemoEmbedList` in
`@memos-embed/react` so SSR/SSG pages include full embed HTML without
waiting for hydration. Also replaces `innerHTML` injection with direct
render output for safer, faster markup.
- **Bug Fixes**
- SSR/SSG now outputs full embed HTML when `memo`/`memos` props are
provided.
- Removed imperative `innerHTML`; use memoized HTML and a small
`renderHtml` helper.
- Added SSR regression tests and updated docs/READMEs; published a patch
changeset.
<sup>Written for commit a121dfc.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Passing `memo` or `memos` while a `MemoClientProvider` is active primes the shared client cache, so later embeds for the same ids can reuse already-fetched data.
213
+
Passing `memo` or `memos` while a `MemoClientProvider` is active primes the shared client cache, so later embeds for the same ids can reuse already-fetched data. Those pre-fetched props also render immediately in the initial HTML response for SSR/SSG pages.
Passing `memo` or `memos` while a `MemoClientProvider` is active primes the shared client cache, so later embeds for the same memo ids can reuse that data.
94
94
95
+
When you pass pre-fetched `memo` or `memos`, the component now renders full embed markup during SSR/SSG instead of waiting for client-side hydration.
0 commit comments