Lincoln Karuhanga

Results 4 comments of Lincoln Karuhanga

It seems to work sometimes and not other times. ![1](https://user-images.githubusercontent.com/12200860/50664229-676dde80-0fbd-11e9-8bd3-42bb8616c8ba.gif) ![2](https://user-images.githubusercontent.com/12200860/50664247-748acd80-0fbd-11e9-8f1d-20d89ad30d0a.gif)

Unfortunately ended up rewriting this([here](https://github.com/karuhanga/next-usequerystate/blob/karuhanga%2Fuse_next_js_router/src/usingRouterInstead/useQueryStates.ts)) to make use of `router.query` instead of `window.location.search` so that I could use https://www.npmjs.com/package/next-router-mock. My initial hope was I'd just update the and do a...

> The reason why I didn't use router.query was for optimisation: I did not want useQueryState('foo') to cause rerenders when any other part of the router changed (path, unrelated query...