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
I know it is not recommended to modify the parameter object in the function, but I really didn't expect prevSearch is actually connected to the current url state. I thought it's just an object with current search params values. Didn't test prevParams, but I guess it works same.
Is this a intended behavior? Any performance issues if this prev object is a copied one?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I had a validateSearch error when I passed undefined to 'type' parameter. Arktype didn't allow undefined on optional parameter.
So I tried to delete it from previous search.
Then I found that this also removes the search param in the url. So I solved it like below.
I know it is not recommended to modify the parameter object in the function, but I really didn't expect
prevSearch
is actually connected to the current url state. I thought it's just an object with current search params values. Didn't testprevParams
, but I guess it works same.Is this a intended behavior? Any performance issues if this prev object is a copied one?
Beta Was this translation helpful? Give feedback.
All reactions