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
The external globalThis.jotaiAtomCache's entry shadows the internal one, so the internal get function actually returns undefined instead of an atom, and that undefined is passed to useAtomValue and caused the error. It happens when I call atom initializer in atomFamily or jotai-molecule molecule initializer, etc.
The text was updated successfully, but these errors were encountered:
Environment:
next.config.js:
Why it happen:
The following lines in _component.js
are compiled to the following lines in .next/server/app/page.js:
The external
globalThis.jotaiAtomCache
's entry shadows the internal one, so the internal get function actually returns undefined instead of an atom, and that undefined is passed to useAtomValue and caused the error. It happens when I callatom
initializer in atomFamily or jotai-molecule molecule initializer, etc.The text was updated successfully, but these errors were encountered: