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 97a715c commit 4633ab2Copy full SHA for 4633ab2
src/reactpy_router/routers.py
@@ -99,7 +99,10 @@ def _match_route(
99
if match is not None:
100
if select == "first":
101
return [match]
102
- matches.append(match)
+
103
+ # This is no longer used by `reactpy-router`, since `react-router>=6.0.0` no longer supports
104
+ # multiple matches. However, it's kept here to support future changes.
105
+ matches.append(match) # pragma: no cover
106
107
if not matches:
108
_logger.debug("No matching route found for %s", location.pathname)
0 commit comments