Skip to main content
In this example, we’ll show how you can create a single form component that works for both create and update forms. We will also cover the following:
  • Create a single form component that works for both create and update based on a type prop
  • Create fields that are related to each other and need to update when one of them changes
  • Automatically handle relations and link pickers. The library automatically links/unlinks relations when a relational field is updated.
  • Debouncing/throttling fields by a specific time
  • Showing a sync indicator while updates are pending due to debouncing/throttling
  • How to pass typesafe field data to child components
The following component can be used as a create or update form just by changing the type prop.

Example