I am using turborepo with two nextJs apps. In one these apps I created a provider file and after hours of trial error I found out that this file was causing the error but the fix was weird.
enter image description here–>session provider imported after recoil(solves the problem)
enter image description here–>session provider imported before recoil(causes the problem)
enter image description here–>layout file
I tried fiddling with the config for turboRepo and the docs but found nothing useful. Any explanation would be appreciated.
To reproduce the issue go here:
https://github.com/deauthe/paytm_clone/tree/hydration_issue
and follow the readme and populate you .env if necessary