mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02: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