From 7b56f8467004a831c1b3c069f6dec7bb32e3f72b Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Wed, 17 Jan 2024 13:41:49 -0800 Subject: [PATCH] fix: add deps --- apps/antalmanac/src/components/Map/Routes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/antalmanac/src/components/Map/Routes.tsx b/apps/antalmanac/src/components/Map/Routes.tsx index 597e15f83..b22f413f6 100644 --- a/apps/antalmanac/src/components/Map/Routes.tsx +++ b/apps/antalmanac/src/components/Map/Routes.tsx @@ -146,7 +146,7 @@ export default function ClassRoutes(props: ClassRoutesProps) { return () => { routerRef.current.instance.remove(); }; - }, []); + }, [context.map, routerRef]); return null; }