@devries-cameron20 / t3code Mirror · read-only / commits / 22585fd9ff
Fork 0

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 managed relay hooks compile without manual memoization (#20552)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 22:15 UTC 22585fd9ff701ff4f43b38f8a045440002618a05
1 file changed +5 -5
apps/web/src/cloud/managedRelayState.ts
+5 -5
@@ -19,7 +19,7 @@ import * as Context from "effect/Context";
19 import * as Effect from "effect/Effect";
20 import * as Layer from "effect/Layer";
21 import { AsyncResult, Atom } from "effect/reactivity";
22 -import { useCallback, useEffect } from "react";
22 +import { useEffect } from "react";
23
24 import { runtime } from "../lib/runtime";
25 import { appAtomRegistry } from "../rpc/atomRegistry";
@@ -75,11 +75,11 @@ export function useManagedRelayEnvironments() {
75 });
76 }
77 }, [snapshot.error, snapshot.errorTraceId]);
78 - const refresh = useCallback(() => {
78 + const refresh = () => {
79 if (accountId) {
80 managedRelayQueryManager.refreshEnvironments(appAtomRegistry, accountId);
81 }
82 - }, [accountId]);
82 + };
83
84 return {
85 ...snapshot,
@@ -102,11 +102,11 @@ export function useManagedRelayDevices() {
102 });
103 }
104 }, [snapshot.error, snapshot.errorTraceId]);
105 - const refresh = useCallback(() => {
105 + const refresh = () => {
106 if (accountId) {
107 managedRelayQueryManager.refreshDevices(appAtomRegistry, accountId);
108 }
109 - }, [accountId]);
109 + };
110
111 return {
112 ...snapshot,