You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After my server action has resolved and returned a successful response the form items are still showing the previous default values (reverting the newly entered values) despite me calling router.refresh() and fetching the latest data in the parent page and passing it down to the client component that renders the form.
To circumvent this issue I attempted to pass Date.now() as a key prop to my client component to force a full rerender which technically works, but it's noticeable that the form resets shortly to the previous default values and then updates with the new values.
Describe the bug and the expected behavior
After my server action has resolved and returned a successful response the form items are still showing the previous default values (reverting the newly entered values) despite me calling
router.refresh()
and fetching the latest data in the parent page and passing it down to the client component that renders the form.To circumvent this issue I attempted to pass
Date.now()
as a key prop to my client component to force a full rerender which technically works, but it's noticeable that the form resets shortly to the previous default values and then updates with the new values.Conform version
v1.2.2
Steps to Reproduce the Bug or Issue
What browsers are you seeing the problem on?
Chrome, Safari
Screenshots or Videos
CleanShot.2024-09-30.at.00.30.54.mp4
Additional context
No response
The text was updated successfully, but these errors were encountered: