We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4c2b1c + d2f0839 commit 96288ccCopy full SHA for 96288cc
frontend/.changeset/honest-lemons-wish.md
@@ -0,0 +1,5 @@
1
+---
2
+'pydantic-forms': patch
3
4
+
5
+Disables using previous form definition while new one is loading
frontend/packages/pydantic-forms/src/core/hooks/useApiProvider.tsx
@@ -75,7 +75,9 @@ export function useApiProvider(
75
revalidateIfStale: true,
76
revalidateOnReconnect: false,
77
revalidateOnFocus: false,
78
- keepPreviousData: true,
+ // We want to make sure the correct data is showing so we don't want to prefill with stale data
79
+ // we dont use the previous data because of that
80
+ keepPreviousData: false,
81
shouldRetryOnError: false,
82
83
...swrConfig,
0 commit comments