diff options
| author | AAGaming <aagaming00@protonmail.com> | 2022-06-17 18:43:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-17 18:43:53 -0400 |
| commit | 99b4b939bdd2140aecf19ddb09a59b44e9cd117d (patch) | |
| tree | d1a4c154101cb43b34c782a310e9c0699c9cf005 /frontend/src/router-hook.tsx | |
| parent | a95bf94d878f61869895bb22cbff1b4f524c5dca (diff) | |
| download | decky-loader-99b4b939bdd2140aecf19ddb09a59b44e9cd117d.tar.gz decky-loader-99b4b939bdd2140aecf19ddb09a59b44e9cd117d.zip | |
Implement React-based plugin store (#81)
Co-authored-by: TrainDoctor <11465594+TrainDoctor@users.noreply.github.com>
Co-authored-by: WerWolv <werwolv98@gmail.com>
Diffstat (limited to 'frontend/src/router-hook.tsx')
| -rw-r--r-- | frontend/src/router-hook.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx index 83d23bf1..ce0c553f 100644 --- a/frontend/src/router-hook.tsx +++ b/frontend/src/router-hook.tsx @@ -92,6 +92,10 @@ class RouterHook extends Logger { this.routerState.addRoute(path, component, props); } + removeRoute(path: string) { + this.routerState.removeRoute(path); + } + deinit() { unpatch(this.gamepadWrapper, 'render'); this.router && unpatch(this.router, 'type'); |
