Skip to content

Commit

Permalink
fix(useOrders): dynamic revalidateOnMount value
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jan 22, 2025
1 parent a5ef236 commit a6aba76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const useOrders = (shouldFetch: boolean) => {
revalidateIfStale: false,
keepPreviousData: true,
shouldRetryOnError: false,
revalidateOnMount: false,
revalidateOnMount: shouldFetch,
})

const orders = data?.map((page) => page.orders).flat() ?? []
Expand Down

0 comments on commit a6aba76

Please sign in to comment.