-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: improve render performance of fields
Running the dispatcher on each change is expensive, and waiting for it to run before showing the user's input creates a significant lag. This change uses local state for all inputs, to give the user immediate feedback, and debounces the dispatcher call. useDeferredValue doesn't help us here, since the reducer is expensive regardless of the UI render.
- Loading branch information
Showing
1 changed file
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters