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 require to know what exact URL am I validating search parameters for.
Example
Imagine I have a URL defined as /booking/$pickupDate?returnDate=2025-03-21.
I want to validate that returnDatesearch param is before pickupDatepath param
Solution
I suggest to modify validateSearch(searchParams) to validateSearch(searchParams, pathParams)
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
-
I require to know what exact URL am I validating search parameters for.
Example
Imagine I have a URL defined as
/booking/$pickupDate?returnDate=2025-03-21
.I want to validate that
returnDate
search param is beforepickupDate
path paramSolution
I suggest to modify
validateSearch(searchParams)
tovalidateSearch(searchParams, pathParams)
Beta Was this translation helpful? Give feedback.
All reactions