diff --git a/remix/app/hooks/usePath.tsx b/remix/app/hooks/usePath.tsx index 429b9a7..5422731 100644 --- a/remix/app/hooks/usePath.tsx +++ b/remix/app/hooks/usePath.tsx @@ -32,9 +32,13 @@ export const usePath = (props?: any) => { set = true } }) - // if (!set) { - // setMode("things") - // } + if (!set) { + setMode((mode) => { + if (!mode) { + return "things" + } + }) + } }, [pathname, modes]) const changePath = React.useCallback(