Skip to content
public-library›Rules›React›Keep input responsive by marking non-urgent updates

Keep input responsive by marking non-urgent updates

Keep updates that reflect what the user just did, such as the text in an input, urgent. Mark the expensive updates they cause as non-urgent with useTransition or useDeferredValue, so React can interrupt them to handle new input.

In the full rule