Skip to content

v2.1.2

Latest

Choose a tag to compare

@adeelraza adeelraza released this 11 Aug 16:08
· 4 commits to master since this release
0155e26

Fixed

  • SSR/hydration: auto-generated editor ids now use React's useId (React 18+) so the id is identical on the server render and during client hydration. Previously the id came from a module-level counter that diverges between server and client, causing a hydration mismatch and — because the editor then mounted against a stale server id — a silently blank editor under SSR (e.g. the Next.js App Router). React 16.8/17 keep the legacy counter fallback. Pass an explicit editorId to opt out.

Fixes the issue from #495 (thanks @jawadakram20); shipped via #514.

npm: react-email-editor@2.1.2

Full changelog: https://github.com/unlayer/react-email-editor/blob/master/CHANGELOG.md