mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix firebaseCollections being fetched too often
This commit is contained in:
@@ -56,7 +56,12 @@ export default function TableSettings({
|
||||
const { data: collections } = useSWR(
|
||||
"firebaseCollections",
|
||||
() => rowyRun?.({ route: runRoutes.listCollections }),
|
||||
{ revalidateIfStale: false, dedupingInterval: 60_000 }
|
||||
{
|
||||
revalidateOnMount: true,
|
||||
revalidateOnFocus: false,
|
||||
revalidateOnReconnect: false,
|
||||
dedupingInterval: 60_000 * 60,
|
||||
}
|
||||
);
|
||||
|
||||
const open = mode !== null;
|
||||
|
||||
Reference in New Issue
Block a user