Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed ssr not working for authed only components

Blue Mouse517a10bca9f9
diff --git a/app/hoc/protected.tsx b/app/hoc/protected.tsx
index f0de91f32..49c9ce046 100644
--- a/app/hoc/protected.tsx
+++ b/app/hoc/protected.tsx
@@ -36,9 +36,9 @@ export const withAuthentication = <P extends PropsType>(WrappedComponent: any, a
}
}, [selector])
- if (!selector) {
- return null
- }
+ // if (!selector) {
+ // return null
+ // }
return <WrappedComponent {...props} />
}