Skip to content

Commit

Permalink
Revert "try using only fragment change"
Browse files Browse the repository at this point in the history
This reverts commit 5949c9f.
  • Loading branch information
twobiers committed Sep 28, 2023
1 parent ba91800 commit 9b5783a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/P0weruser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ const init = () => {
// However, this causes the history to contain a duplicated entry. Therfeore we dispatch an internal event that is
// normally issued by the navigateTo method.
// TODO: We could keep track about the changes that require a re-load, and check here if it is required
p.currentView?.fragmentChange(p.getFragment());
p.currentView = null;
p._dispatch(null, true);
}
};

Expand Down
2 changes: 0 additions & 2 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ export type SetBitsResponse = {
export type P = {
_routes: any[];
_dispatch: (arg1: unknown | null, arg2: boolean) => unknown;
getFragment(): string;
currentView: null | {
$itemContainer: unknown;
currentItemId: number | null;
stream: StreamInView | undefined;
hideItem(): unknown;
load(): void;
fragmentChange(fragment: string): void;
};
NAVIGATE: {
DEFAULT: 0;
Expand Down

0 comments on commit 9b5783a

Please sign in to comment.