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
Error rendering / on server
Cannot read properties of null (reading 'useContext')
TypeError: Cannot read properties of null (reading 'useContext')
at process.env.NODE_ENV.exports.useContext (/Users/ps/code/demo/apps/app/node_modules/react/cjs/react.development.js:1464:25)
at useStore (file:///Users/ps/code/demo/apps/app/node_modules/jotai/esm/react.mjs:9:17)
at useAtomValue (file:///Users/ps/code/demo/apps/app/node_modules/jotai/esm/react.mjs:96:17)
at useAtom (file:///Users/ps/code/demo/apps/app/node_modules/jotai/esm/react.mjs:153:5)
at AppShell (/Users/ps/code/demo/apps/app/src/interface/appShell/appShell.tsx:16:27)
Expected Behavior
should work without errors
One Version
1.1.459
Platform (Web, iOS, Android)
Web
Reproduction
add the dependency using `bun add jotai`.
add the following code to one of the route.
export const helloAtom = atom('hello');
export function HomePage() {
const [hello] = useAtom(helloAtom);
return <>{hello}</>;
}
versions:
"one": "1.1.459","jotai": "^2.12.1",
System Info
The text was updated successfully, but these errors were encountered:
Current Behavior
using Jotai throws error.
Expected Behavior
should work without errors
One Version
Platform (Web, iOS, Android)
Reproduction
System Info
The text was updated successfully, but these errors were encountered: