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 suggest to consider adopting matchPath utility from react-router.
Why:
It's a tested function from one of the most used routing solution. It will most likely handle all the necessary routing scenarios, which are crucial for API mocking as well.
Cons:
Much heavier than a single matching function
Creates an extra dependency
The text was updated successfully, but these errors were encountered:
I suggest to consider adopting
matchPath
utility fromreact-router
.Why:
It's a tested function from one of the most used routing solution. It will most likely handle all the necessary routing scenarios, which are crucial for API mocking as well.
Cons:
The text was updated successfully, but these errors were encountered: