David Perklin

Results 2 comments of David Perklin

> > @LukyVj It works just fine in Next.js from what I can tell. > > [codesandbox.io/s/hopeful-franklin-xr1fe?file=/src/pages/index.tsx](https://codesandbox.io/s/hopeful-franklin-xr1fe?file=/src/pages/index.tsx) > > From the error message you're sharing it seems to come from...

@zmthy My solution to this is: ` setSearchParams({ ...Object.fromEntries([...searchParams]), paramToUpdate: "updatedValue", })` This spreads the object created from the searchParams key-value pairs into the new setSearchParams object. Note that Object.fromEntries...