Skip to content

Commit

Permalink
Change route update strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Jul 4, 2023
1 parent 286a2b3 commit 6670021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions apps/meteor/client/providers/RouterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ const routesSubscribers = new Set<() => void>();
const updateFlowRouter = () => {
if (FlowRouter._initialized) {
FlowRouter._updateCallbacks();
const { path } = FlowRouter.current();
FlowRouter._current.path = '';
FlowRouter._page.show(path);
FlowRouter._page.dispatch({ path: FlowRouter._current.path, params: {} });
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ declare module 'meteor/kadira:flow-router' {
start(): void;
stop(): void;
show(path: string): void;
dispatch(ctx: { path: string; params: any }): void;
};
};
}

0 comments on commit 6670021

Please sign in to comment.