feat: update PotenzialiProvider to include query options for improved data fetching
This commit is contained in:
parent
2ef18a0b5b
commit
c153dca662
1 changed files with 5 additions and 1 deletions
|
|
@ -26,7 +26,11 @@ type PotenzialiProviderProps = {
|
|||
children: React.ReactNode;
|
||||
};
|
||||
export const PotenzialiProvider = ({ children }: PotenzialiProviderProps) => {
|
||||
const { data } = api.potenziali.getPotenziali.useQuery();
|
||||
const { data } = api.potenziali.getPotenziali.useQuery(undefined, {
|
||||
refetchInterval: 30000,
|
||||
refetchIntervalInBackground: true,
|
||||
refetchOnWindowFocus: true,
|
||||
});
|
||||
|
||||
const { data: columns } = api.potenziali.getPotenzialiGroups.useQuery();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue