Skip to content
Discussion options

You must be logged in to vote

You can define search params completely independently from one another, so your table component only deals with table-related matters (sorting, pagination), and another component deals with domain-specific controls (eg: data fetching). The URL is merged/resolved on update.

Each hook can define different options. In the case of shallow, if you were to update one search param with shallow: true and one with shallow: false in the same event loop tick, the shallow: false would take precedence and notify the server.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tauhid97k
Comment options

@franky47
Comment options

@tauhid97k
Comment options

Answer selected by franky47
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