Usage of context with SSR throws error above in dev mode. No error in production build
TypeError: Cannot read properties of null (reading 'useFormContext')
at FormField (D:/work/FitLab-front/src/components/Form/Field.tsx:44:41)
at Module.createComponent (file:///D:/work/FitLab-front/node_modules/solid-js/dist/server.js:353:15)
at get children [as children] (D:/work/FitLab-front/src/views/client/programs/[id]/index.tsx:53:39)
at eval (D:/work/FitLab-front/src/components/Form/index.tsx:58:102)
Duplicates
Latest version
Current behavior 😯
Usage of context with SSR throws error above in dev mode. No error in production build
Expected behavior 🤔
No response
Steps to reproduce 🕹
Steps:
foo } 4.
5.Error
Context 🔦
No response
Your environment 🌎