in a NextJS 14 app router project, i'm assigning an element to context on mount. if i make changes to my code that trigger a hot reload, i get the following errors:
i can only replicate this when assigning an HTMLElement. assigning a string works fine.
XState version
XState version 5
Description
in a NextJS 14 app router project, i'm assigning an element to context on mount. if i make changes to my code that trigger a hot reload, i get the following errors:
i can only replicate this when assigning an HTMLElement. assigning a string works fine.
Steps to reproduce
<div>
to trigger a hot reloadhttps://github.com/user-attachments/assets/4019fa36-40fc-4b8f-ab81-eab98f9f9543
Expected result
hot reload would succeed without errors
Actual result
maximum call stack exceeded
Reproduction
https://stackblitz.com/edit/stackblitz-starters-hocxhz?description=The%20React%20framework%20for%20production&file=app%2Ftest.tsx,app%2Fpage.tsx&title=Next.js%20Starter
Additional context
No response