Next.js Discord

Discord Forum

dynamic server usage: searchparams.argumentresolutionerror

Unanswered
Silver Fox posted this in #help-forum
Open in Discord
Silver FoxOP
I have a RSC doing all the heavy data fetching to get the content and render them as a table (using ssr). I want to add buttons to control the visibility of each columns, so I created a client component and takes in that RSC as children prop (recommended by the docs). I pass in the button info(clicked or not) as URL search params for the RSC to use the argument searchParams to catch that. I encountered this error when I was trying to router.push(pathname + '?' + params), and the RSC couldn't catch the new params at all. However, when I manually enter the params on url bar, RSC could catch that. Does anybody know what the problem is?

2 Replies

Silver FoxOP
please i really need help on this
please do not repost the question. i will remove the other post