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
Currently, we can access query string by location.search
I think it would be better to provide location.query which excludes ? from location.search.
For example, assume that we have a url like 'www.reactrouter.com?type=web', location.search shows '?type=web'
and I request to have location.query which shows 'type=web' without '?' letter.
Node.js url module also provide both location.search and location.query.
I think providing both is useful for those who parse querystring. For me, I always have to substring url to exclude ? letter, and it's quite annoying.
The text was updated successfully, but these errors were encountered:
Currently, we can access query string by
location.search
I think it would be better to provide
location.query
which excludes?
fromlocation.search
.For example, assume that we have a url like 'www.reactrouter.com?type=web',
location.search
shows '?type=web'and I request to have
location.query
which shows 'type=web' without '?' letter.Node.js url module also provide both
location.search
andlocation.query
.I think providing both is useful for those who parse querystring. For me, I always have to substring url to exclude ? letter, and it's quite annoying.
The text was updated successfully, but these errors were encountered: