The best way to control Claude Code, Codex and more from any computer or phone
refactor(web): pull request markdown keeps its caching without "use memo" hooks (#20744)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 23:22 UTC
9554194e7e3587b7e08263ba42f869e57aca8d90
1 file changed
+1
-8
apps/web/src/components/pullRequest/PullRequestMarkdown.tsx
+1
-8
@@ -18,13 +18,6 @@ export const PullRequestMarkdownContext = createContext<{
18
threadRef: ScopedThreadRef | null;
19
} | null>(null);
20
21
-// Both asset hooks key on the resource's identity; the compiler cannot cache a value
22
-// across successive hook calls in the component itself.
23
-function useGitHubMediaResource(cwd: string, fetchUrl: string): AssetResource {
24
- "use memo";
25
- return { _tag: "github-media", cwd, url: fetchUrl };
26
-}
27
-
21
function PullRequestGitHubVideo({
22
environmentId,
23
cwd,
@@ -36,7 +29,7 @@ function PullRequestGitHubVideo({
29
url: string;
30
fetchUrl: string;
31
}) {
39
- const resource = useGitHubMediaResource(cwd, fetchUrl);
32
+ const resource: AssetResource = { _tag: "github-media", cwd, url: fetchUrl };
33
const assetUrl = useAssetUrlState(environmentId, resource);
34
const refreshAssetUrl = useAssetUrlRefresh(environmentId, resource);
35
const src =