Skip to content

Commit

Permalink
do not mark fetch rule by id query results as instantly stale
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Mar 23, 2023
1 parent cd6cc72 commit 53f778f
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ export const useFetchRuleByIdQuery = (id: string, options?: UseQueryOptions<Rule
{
...DEFAULT_QUERY_OPTIONS,
...options,
// Mark this query as immediately stale helps to avoid problems related to filtering.
// e.g. enabled and disabled state filter require data update which happens at the backend side
staleTime: 0,
enabled: !!id,
}
);
Expand Down

0 comments on commit 53f778f

Please sign in to comment.