Skip to content

Commit 495c927

Browse files
committed
chore: cache dynamic data to stop new row reload
1 parent c18d2a8 commit 495c927

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/frontend/src/hooks/useDynamicData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ function useDynamicData(
9595
},
9696
skip: shouldSkipQuery,
9797
notifyOnNetworkStatusChange: true,
98+
fetchPolicy: 'cache-first',
99+
nextFetchPolicy: 'cache-only',
98100
})
99101

100102
// Refetch if any of our watched form fields changes.

0 commit comments

Comments
 (0)