fix: remove all page-entry and opening animations for instant, rock-solid page loading
This commit is contained in:
@@ -14,7 +14,7 @@ export function PremiumGate({ featureKey, children }: PremiumGateProps) {
|
||||
const { hasAccessTo, loading, user } = useActiveUser();
|
||||
|
||||
// Allow children to render immediately without a blocking center spinner
|
||||
// so that page entry animations (animate-section) execute smoothly on route transition.
|
||||
// so that pages mount instantly on route transition.
|
||||
if (loading || !user) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user