usetheform
Edit page
Introduction
Components
CollectionFormFormContextInputPersistStateOnUnmountBasic usageSelectTextArea
Hooks
Material UI - React Select

PersistStateOnUnmount

In usetheform if a Field gets unmounted its value within the Form state gets cleared. Wrap your Field elements between the <PersistStateOnUnmount /> component to preserve the Fields values.

Basic usage

import { Form, PersistStateOnUnmount, Input } from 'usetheform'
  • {} 0 keys