The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 06:45 UTC
perf(web): the first-run gate compiles with the React Compiler (#20637)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 21:58 UTC
478b06c60972b3469d73584a08d54323072e4839
1 file changed
+9
-13
apps/web/src/components/onboarding/FirstRunGate.tsx
+9
-13
@@ -136,24 +136,20 @@ export function FirstRunGate({
136
threadCount: threads.length,
137
});
138
139
+ if (decision !== "wizard" && hydrated) {
140
+ const transitioned = transitionFirstRunGateState(gateState, {
141
+ type: "evidence",
142
+ decision: nextDecision,
143
+ });
144
+ if (transitioned !== gateState) setGateState(transitioned);
145
+ }
146
+
147
useEffect(() => {
148
if (decision === "wizard" || !hydrated) return;
141
-
149
if (persistCompletion && onboardingCompletedAt === null) {
150
void completeOnboarding().catch(() => undefined);
151
}
145
-
146
- setGateState((state) =>
147
- transitionFirstRunGateState(state, { type: "evidence", decision: nextDecision }),
148
- );
149
- }, [
150
- completeOnboarding,
151
- decision,
152
- hydrated,
153
- nextDecision,
154
- onboardingCompletedAt,
155
- persistCompletion,
156
- ]);
152
+ }, [completeOnboarding, decision, hydrated, onboardingCompletedAt, persistCompletion]);
153
154
useEffect(() => {
155
if (!enabled || decision !== "pending" || !hydrated) return;