Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not setting cookie error #18

Open
dervaux opened this issue Jun 25, 2021 · 2 comments
Open

Not setting cookie error #18

dervaux opened this issue Jun 25, 2021 · 2 comments

Comments

@dervaux
Copy link

dervaux commented Jun 25, 2021

Hi @xeoneux!
I'm using next-dark-mode with nextjs + material UI. I'm getting those errors from the server:

Not setting "autoMode" cookie. Response has finished.
You should set cookie before res.send()
Not setting "darkMode" cookie. Response has finished.
You should set cookie before res.send()

Implementation:

Screenshot 2021-06-25 at 15 13 43

Any idea about how I could solve that?

@nicogulo
Copy link

have the same issue
image

@xeoneux
Copy link
Owner

xeoneux commented Oct 10, 2022

Hi @dervaux, thanks for reporting this, @nicogulo were you able to solve this?
Also, what happens if you do not use the useDarkMode hook inside the MyApp function and simply use the darkMode value passed on to it? @dervaux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants