Skip to content

Commit c3311e9

Browse files
refactor(mobile): legacy plan mode state drops its unread loaded flag
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent af0214f commit c3311e9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎apps/mobile/src/features/threads/use-legacy-plan-mode-enabled.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ import { AsyncResult } from "effect/reactivity";
44
import { mobilePreferencesAtom } from "../../state/preferences";
55
import { resolveLegacyPlanModeEnabled } from "../../state/legacy-plan-mode";
66

7-
export function useLegacyPlanModeState(): { readonly enabled: boolean; readonly loaded: boolean } {
7+
export function useLegacyPlanModeState(): { readonly enabled: boolean } {
88
const preferences = useAtomValue(mobilePreferencesAtom);
99
const loaded = AsyncResult.isSuccess(preferences);
1010
return {
1111
enabled: resolveLegacyPlanModeEnabled({
1212
loaded,
1313
preference: loaded ? preferences.value.planModeEnabled : undefined,
1414
}),
15-
loaded,
1615
};
1716
}

0 commit comments

Comments
 (0)