From 99b4b939bdd2140aecf19ddb09a59b44e9cd117d Mon Sep 17 00:00:00 2001
From: AAGaming <aagaming00@protonmail.com>
Date: Fri, 17 Jun 2022 18:43:53 -0400
Subject: Implement React-based plugin store (#81)

Co-authored-by: TrainDoctor <11465594+TrainDoctor@users.noreply.github.com>
Co-authored-by: WerWolv <werwolv98@gmail.com>
---
 frontend/src/router-hook.tsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'frontend/src/router-hook.tsx')

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');
-- 
cgit v1.2.3

