Skip to content

Is there way to trigger default value if select value is changing ? #868

Answered by Kavan72
Kavan72 asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you, I was looking for this.

updateOrganizationSearchParams((previousState) => ({
  query: event.target.value,
  page: null,
}))

Using a constant value like 1 is difficult to manage with default value, so null is a perfect solution.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Kavan72
Comment options

@Kavan72
Comment options

@franky47
Comment options

@Kavan72
Comment options

Answer selected by franky47
@franky47
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants