Skip to content

Commit 4992982

Browse files
Merge pull request #870 from preactjs/bugfix-iso-router-unrender
2 parents deab6d4 + af55d14 commit 4992982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function Router(props) {
125125
});
126126

127127
return h(RouteContext.Provider, { value: m }, p || d);
128-
}, [rest, params]);
128+
}, [url]);
129129

130130
// Reset previous children - if rendering succeeds synchronously, we shouldn't render the previous children.
131131
const p = prev.current;

0 commit comments

Comments
 (0)