How i can update the selectedOption when the items prop chnages or updated ? the items prop is an array i pass it to the component, this array loading it's data from external API, so how i can update it automatically without useEffect ?
Reproduction
I created a new nuqs state and start using it like the above example
Context
What's your version of
nuqs
?What framework are you using?
Which version of your framework are you using?
Description
In this example, I created nuqs state to set and get the option object and use it in the url, when the items prop change it's not update the state:
How i can update the selectedOption when the items prop chnages or updated ? the items prop is an array i pass it to the component, this array loading it's data from external API, so how i can update it automatically without useEffect ?
Reproduction
I created a new nuqs state and start using it like the above example