Skip to content

Commit 6a42f92

Browse files
author
Ruben van Leeuwen
committed
1719: Refetches form definition every time the form is loaded
1 parent c00efbe commit 6a42f92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/packages/pydantic-forms/src/core/hooks/useApiProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export function useApiProvider(
7171
{
7272
fallback: {},
7373

74-
// we dont want to refresh the form structure automatically
75-
revalidateIfStale: false,
74+
// We revalidate to make sure the form updates when we use it a second time
75+
revalidateIfStale: true,
7676
revalidateOnReconnect: false,
7777
revalidateOnFocus: false,
7878
keepPreviousData: true,

0 commit comments

Comments
 (0)