Skip to content

Commit 4991a3a

Browse files
committed
fix: adjust query hook parameters
- Reduced staleTime to 5 seconds and added refetchInterval of 5 seconds in useGetPubKey hook to enhance data freshness and responsiveness.
1 parent 12cbb51 commit 4991a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/api/hooks/nodes/nodes.query.hooks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export const useGetPubKey = createGetQueryHook({
6969
rQueryParams: {
7070
placeholderData: keepPreviousData,
7171
refetchOnMount: true,
72-
staleTime: sToMs(60)
72+
staleTime: sToMs(5),
73+
refetchInterval: sToMs(5)
7374
},
7475
errorHandler: (error) => {
7576
notifications.show({

0 commit comments

Comments
 (0)