Skip to content

Commit 96f156d

Browse files
authored
[chore] remove unused reload flag on NavigationResult (#2964)
1 parent 7f9481a commit 96f156d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/kit/src/runtime/client/renderer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ export class Renderer {
264264
}
265265
}
266266

267-
if (navigation_result.reload) {
268-
location.reload();
269-
} else if (this.started) {
267+
if (this.started) {
270268
this.current = navigation_result.state;
271269

272270
this.root.$set(navigation_result.props);

packages/kit/src/runtime/client/types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type NavigationCandidate = {
1515
};
1616

1717
export type NavigationResult = {
18-
reload?: boolean;
1918
redirect?: string;
2019
state: NavigationState;
2120
props: Record<string, any>;

0 commit comments

Comments
 (0)