Skip to content

Latest commit

 

History

History

outlet-form-rerender

Outlet Form Rerender Remix Example

In this example, we we'll look at how to update a Form with uncontrolled fields during a nested route transition.

For example, when the form is rendered inside a nested route, changing the route from the parent route does not cause the form to unmount but should update the values of the fields.

Preview

Open this example on CodeSandbox:

Open in CodeSandbox

Example

Here we have a simple example where we list a set of users and, clicking on a user will open a form inside a nested route with details of the user prefilled.

You can check the explanation for the problem of updating the form with the updated values at $userId.tsx

Related links