You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have the following reference to it directly via href (let's say from a Bootstrap-React Dropdown component), I verify that it works, and the URL is correct:
But as soon as I add a LinkContainer around the Dropdown Item with a to={..}, it no longer reads the latest state variable. The value is NULL (perhaps from initialization).
Could someone help me?
I have a state variable as follows,
const [searchParams, setSearchParams] = useState(null);
If I have the following reference to it directly via href (let's say from a Bootstrap-React Dropdown component), I verify that it works, and the URL is correct:
But as soon as I add a LinkContainer around the Dropdown Item with a
to={..}
, it no longer reads the latest state variable. The value is NULL (perhaps from initialization).I get
...&searchParams=null
The text was updated successfully, but these errors were encountered: