Skip to content

Commit 21bc1f4

Browse files
author
Ruben van Leeuwen
committed
2059: Clears stored field data on submit
1 parent b87af55 commit 21bc1f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/packages/pydantic-forms/src/core/PydanticFormContextProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ function PydanticFormContextProvider({
373373
}
374374

375375
setFormInputHistory(new Map<string, object>());
376+
fieldDataStorageRef.current = new Map();
376377
// eslint-disable-next-line react-hooks/exhaustive-deps
377378
}, [apiResponse, isFullFilled]); // Avoid completing the dependencies array here to avoid unwanted resetFormData calls
378379

0 commit comments

Comments
 (0)