mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix react-query devtools error on mobile
This commit is contained in:
parent
3405ea9caf
commit
5c13f38dab
@ -1,5 +1,6 @@
|
||||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||
import { Slot, useServerHeadInsertion } from "one";
|
||||
import { Slot, useServerHeadInsertion } from "one";
|
||||
import { Platform } from "react-native";
|
||||
import { StyleRegistryProvider, createStyleRegistry } from "yoshiki/web";
|
||||
import { Providers } from "~/providers";
|
||||
|
||||
@ -80,7 +81,7 @@ export default function Layout() {
|
||||
<StyleRegistryProvider registry={registry}>
|
||||
<Providers>
|
||||
<Slot />
|
||||
<ReactQueryDevtools initialIsOpen={false} />
|
||||
{Platform.OS === "web" && <ReactQueryDevtools initialIsOpen={false} />}
|
||||
</Providers>
|
||||
</StyleRegistryProvider>
|
||||
</body>
|
||||
|
@ -43,7 +43,6 @@ export const AccountProvider = ({ children }: { children: ReactNode }) => {
|
||||
authToken: ret.authToken?.access_token,
|
||||
},
|
||||
});
|
||||
console.log(user);
|
||||
// Use a ref here because we don't want the effect to trigger when the selected
|
||||
// value has changed, only when the fetch result changed
|
||||
// If we trigger the effect when the selected value change, we enter an infinite render loop
|
||||
|
Loading…
x
Reference in New Issue
Block a user