Daniil Volynkin
Daniil Volynkin
I have 1 page that needs to be with a forced theme having two global folders looks too much in this case
I made a provider like this But it doesn't solve the problem completely, for a second when loading the original theme appears ```typescript "use client" import * as React from...
Isn't `setTheme` setting theme globally? In this case, your local wrapper is affecting the whole website ```useEffect(() => { setTheme("dark"); return () => { setTheme("light"); }; }, []); ``` This...
> That was my case, but I suppose you can set resolvedTheme to a useRef and then just pass it when unmounting the component. Open two pages, one with the...
@silentworks ```typescript export const createSupabaseRouteHandlerClient = (anon: boolean = true): SupabaseClient => { const cookieStore = cookies() return sbSSR.createServerClient( env.NEXT_PUBLIC_SUPABASE_URL!, anon ? env.NEXT_PUBLIC_SUPABASE_ANON_KEY! : env.SUPABASE_SERVICE_ROLE_KEY!, { cookieOptions: getCookieOptions(), cookies: {...
```typescript export const getCookieOptions = (): sbSSR.CookieOptions => { const hostname = new URL(env.NEXT_PUBLIC_APP_URL).hostname; const isHostSecure = env.NEXT_PUBLIC_APP_URL.startsWith('https://'); const twelveMonths = 60 * 60 * 24 * 30 * 12;...
I have same issue. changed appearance too [email protected] [email protected]
I've set CSS classes directly and it become stable