mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
fix favorite/rating handlers on detail page
This commit is contained in:
@@ -20,14 +20,13 @@ const queryCache = new QueryCache({
|
||||
|
||||
const queryConfig: DefaultOptions = {
|
||||
mutations: {
|
||||
gcTime: 1000 * 20, // 20 seconds
|
||||
retry: process.env.NODE_ENV === 'production',
|
||||
},
|
||||
queries: {
|
||||
gcTime: 1000 * 5, // 5 seconds
|
||||
refetchOnWindowFocus: false,
|
||||
retry: process.env.NODE_ENV === 'production',
|
||||
staleTime: 1000 * 5, // 5 seconds
|
||||
staleTime: 0, // 5 seconds
|
||||
throwOnError: (error: any) => {
|
||||
return error?.response?.status >= 500;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user