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
constCACHE_TTL_MS=60*30*1000;// 30 minutes - controls how long search results are cached in SWR
20
19
21
-
/**
22
-
* Ensures a Firebase user exists (anonymous or authenticated) before
23
-
* SWR attempts to fetch. If no user is signed in, triggers anonymous
24
-
* sign-in — the same thing App.tsx does for legacy React Router pages.
25
-
* This is needed for the access token
26
-
*
27
-
* TODO: Revisit this logic to be used at a more global level without slowing down the initial load of all pages that don't require auth (e.g. about, contact). For example, we could move this logic to a context provider that's used only on the feeds page and its children.
0 commit comments