Skip to content

Commit

Permalink
fix: Remove staleTime from IDIR search (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnan-aot authored Jan 11, 2024
1 parent b53bafc commit 020de9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
} from "material-react-table";

import OnRouteBCContext from "../../../../common/authentication/OnRouteBCContext";
import { TEN_MINUTES } from "../../../../common/constants/constants";
import { Optional } from "../../../../common/types/common";
import { USER_AUTH_GROUP } from "../../../../common/authentication/types";
import { hasPermitExpired } from "../../../permits/helpers/permitState";
Expand Down Expand Up @@ -90,8 +89,7 @@ export const IDIRSearchResults = memo(
{
retry: 1, // retry once.
enabled: true,
refetchInterval: false,
staleTime: TEN_MINUTES,
refetchOnWindowFocus: false,
keepPreviousData: true,
},
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box } from "@mui/material";
import { useQuery } from "@tanstack/react-query";
import { useCallback, useContext, useEffect, useState } from "react";
import { useCallback, useEffect, useState } from "react";

import {
MRT_GlobalFilterTextField,
Expand Down

0 comments on commit 020de9c

Please sign in to comment.