From ef98cfed90ffa78f06ddea2b91e34ebdde0ab063 Mon Sep 17 00:00:00 2001 From: Valerio Ageno Date: Sat, 11 May 2024 15:55:26 +0200 Subject: [PATCH] feat: check rust handler in client component --- packages/tuono-router/src/components/Matches.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tuono-router/src/components/Matches.tsx b/packages/tuono-router/src/components/Matches.tsx index c86d24fc..28324cfe 100644 --- a/packages/tuono-router/src/components/Matches.tsx +++ b/packages/tuono-router/src/components/Matches.tsx @@ -26,5 +26,9 @@ const Match = React.memo(function ({ id }: MatchProps) { const route = router.routesById[location?.pathname] + if (route.options.hasHandler) { + console.log('Has rust handler') + } + return route.component() })