mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 04:08:45 -05:00
fix: use fallbackData to prepare user data during SSR (#2968)
This commit is contained in:
@@ -125,6 +125,9 @@ const CoreApp: Omit<NextAppComponentType, 'origGetInitialProps'> = ({
|
|||||||
<SWRConfig
|
<SWRConfig
|
||||||
value={{
|
value={{
|
||||||
fetcher: (url) => axios.get(url).then((res) => res.data),
|
fetcher: (url) => axios.get(url).then((res) => res.data),
|
||||||
|
fallback: {
|
||||||
|
'/api/v1/auth/me': user,
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<LanguageContext.Provider value={{ locale: currentLocale, setLocale }}>
|
<LanguageContext.Provider value={{ locale: currentLocale, setLocale }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user