We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1192c5 commit 9d18fc9Copy full SHA for 9d18fc9
src/reactpy_router/hooks.py
@@ -57,12 +57,14 @@ def use_search_params(
57
for the current location.
58
59
See `urllib.parse.parse_qs` for info on this hook's parameters."""
60
+ location = use_location()
61
+ query_string = location.search[1:] if len(location.search) > 1 else ""
62
63
# TODO: In order to match `react-router`, this will need to return a tuple of the search params \
64
# and a function to update them. This is currently not possible without reactpy core having a \
65
# communication layer.
66
return parse_qs(
- use_location().search[1:],
67
+ query_string,
68
keep_blank_values=keep_blank_values,
69
strict_parsing=strict_parsing,
70
errors=errors,
0 commit comments