Fix refetchInterval 180.000 ms
This commit is contained in:
@@ -62,7 +62,7 @@ const MobileResultsCard = ({
|
||||
const { data } = useSuspenseQuery<PanelElectoralDto>({
|
||||
queryKey: ['panelElectoral', eleccionId, ambitoId, categoriaId, ambitoNivel],
|
||||
queryFn: () => getPanelElectoral(eleccionId, ambitoId, categoriaId, ambitoNivel),
|
||||
refetchInterval: 30000,
|
||||
refetchInterval: 180000,
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
@@ -143,7 +143,7 @@ const PanelContenido = ({ eleccionId, ambitoActual, categoriaId }: { eleccionId:
|
||||
const { data } = useSuspenseQuery<PanelElectoralDto>({
|
||||
queryKey: ['panelElectoral', eleccionId, ambitoActual.id, categoriaId, ambitoActual.nivel],
|
||||
queryFn: () => getPanelElectoral(eleccionId, ambitoActual.id, categoriaId, ambitoActual.nivel),
|
||||
refetchInterval: 30000,
|
||||
refetchInterval: 180000,
|
||||
});
|
||||
|
||||
if (data.sinDatos) {
|
||||
|
||||
Reference in New Issue
Block a user