Multi-store with no hydration mismatch
- User's preferred themes are persisted in cookies on the server and in memory on the client
- No system theme option and no client-side persistence, hence no sync script required and no hydration mismatch
- Theme selection is only saved upon form submission
These 2 sections read from the same theme store
Demo links
App Router
Basic usage →Multi-store with server persistence →
Multi-store with no hydration mismatch →
Pages Router
Basic usage →Multi-store with server persistence →
Multi-store with no hydration mismatch →