Skip to content

Avoid onChange pile-up #897

Answered by rmorshea
numpde asked this question in Question
Discussion options

You must be logged in to vote

From my reading, there two separate questions here:

  1. When handling user input, is there a way to make the client wait until a user has finished editing before sending an event.
  2. Is there a way to avoid unnecessary renders (e.g. by cancelling them before they happen).

The answer to both is that there is no way to do either at present. I'll address each individually and, with a complete example, below...

For 1, given that you cannot configure any client-side waiting behavior, you'd want to implement this logic server-side. I don't think we'd want to add the ability to configure the client's behavior in this regard simply to avoid adding custom props (e.g. an onChangeDelay prop) to standard …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rmorshea
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants