This repository was archived by the owner on Jan 10, 2025. It is now read-only.
[react-form] dynamicList value is reverted to default value after submit when using makeCleanAfterSubmit #2353
Labels
Type: Bug 🐛
Something isn't working
Overview
Using
makeCleanAfterSubmit: true
reverts the value of dynamic lists to the default value instead of the (successfully) submitted value.I've managed to fix the issue locally by adding
dynamicListBagRef.current = dynamicListBag;
after https://github.com/Shopify/quilt/blob/main/packages/react-form/src/hooks/submit.ts#L32 but I am not sure if this is the right solution.The text was updated successfully, but these errors were encountered: