| ▲ | franciscop 4 days ago | |
This is one of the things that bothered me the most from existing React libraries, if you wanted to update a single query parameter now you needed to do a lot of extra work. It bothered me so much I ended up making a library around this [1], where you can do just:
Here's a bit more complex example with a CodeSadnbox[2]:
[1] https://crossroad.page/ | ||
| ▲ | agos 3 days ago | parent [-] | |
that's a quite common pain. Both nuqs and Tanstack Router come to mind as libraries which put some thought in making it a bit better | ||