[SSR] Tauri App with NextJS & Recoil #2167
Unanswered
TristanPouliquen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to build my first Tauri App and I am trying to use Recoil as my state management.
I defined my first atoms and used them in some components.
But when I launch my Tauri App I get an error stating:
From what I understand, this would come from the SSR of NextJS, but this started appearing when I added Recoil to my project.
Are there specific instructions on how to implement Recoil in a NextJS project for correct SSR?
Here are the atoms & actions I defined: https://github.com/TristanPouliquen/selection-poste-enm/blob/state-management/_state/positions.ts
Here are the relevant components:
This page just fetches the list of
Position
objects from my backend, displays them & handles a focus to open a modal when clicking on an element.Thanks in advance if anyone has an idea!
Beta Was this translation helpful? Give feedback.
All reactions