Save state in URL to persist state between forward/back navigation, bookmarks, and sharing links. With next/router or most other packages, updating query state multiple times inside a render causes ...
Note: version 1.8.0 requires Next.js 13.4+. useQueryState takes one required argument: the key to use in the query string. Like React.useState, it returns an array with the value present in the query ...