You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check typeof globalThis === 'undefied' is different with typeof window === 'undefined'
unicorn/prefer-global-this
let clientQueryClientSingleton: QueryClient;functiongetQueryClient(){if(typeofwindow==='undefined'){// Server: always make a new query clientreturnmakeQueryClient();}// Browser: use singleton pattern to keep the same query clientreturn(clientQueryClientSingleton??=makeQueryClient());}```
The text was updated successfully, but these errors were encountered:
check
typeof globalThis === 'undefied'
is different withtypeof window === 'undefined'
unicorn/prefer-global-this
The text was updated successfully, but these errors were encountered: