cheogram-www
created pr with
cheogram-www/react-compiler-fixes.1
commented
Changes are available at https://tangled.org/mrry.band/cheogram-www on branch react-compiler-fixes.
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-www:react-compiler-fixes | git am -3checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:react-compiler-fixes [rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:react-compiler-fixesadd comment to patch request:
ssh pr.pico.sh comment cheogram-www:react-compiler-fixes "lgtm!"
Patchset
cheogram-www/react-compiler-fixes.1
Test each file for compilability
Eric Roberts
Fix Account.tsx for react-compiler
2026-11-10T17:11:18ZEric Roberts
Fix Accounts.tsx for react-compiler
2026-11-10T17:23:58ZEric Roberts
Fix Chat.tsx for react-compiler
2026-11-10T17:26:31ZEric Roberts
Fix Chats.tsx for react-compiler
2026-11-10T17:29:12ZEric Roberts
→ Fix Login.tsx for react-compiler
2026-11-10T17:32:03ZEric Roberts
Fix MessageDebugger.tsx for react-compiler
2026-11-10T17:33:10ZEric Roberts
Fix MessageMenuInChat.tsx for react-compiler
2026-11-10T17:33:57ZEric Roberts
Fix Quill.tsx for react-compiler
2026-11-10T17:34:29ZEric Roberts
Fix Register.tsx for react-compiler
2026-11-10T17:35:10ZEric Roberts
2026-11-10T17:36:03Z
Fix Login.tsx for react-compiler
Eric Roberts
2026-11-10T17:33:10ZThe compiler mistakes client.usePassword() for a React hook:
Hooks must be called at the top level of a function component
or custom Hook
Call the reauthenticate helper instead
Semantic diff summary
0 added,
3 modified,
0 signature changed,
0 removed
across 2 analyzed files
+0
-1
scripts/compiler.test.mjs
#
+2
-2
src/components/Login.tsx
#
| ... | ... | @@ -1,5 +1,5 @@ | |
| 1 | 1 | import * as borogove from "borogove"; | |
| 2 | - | import { readyServiceWorker } from "../util"; | |
| 2 | + | import { readyServiceWorker, reauthenticate } from "../util"; | |
| 3 | 3 | import { Link, Navigate, useOutletContext } from "react-router"; | |
| 4 | 4 | import { Context } from "../App"; | |
| 5 | 5 | import { useEffect, useRef, useState } from "react"; |
| ... | ... | @@ -151,7 +151,7 @@ export const Login = () => { | |
| 151 | 151 | }); | |
| 152 | 152 | } else { | |
| 153 | 153 | setAuthAttempts(authAttempts + 1); | |
| 154 | - | account.client.usePassword(e.currentTarget.password.value); | |
| 154 | + | reauthenticate(account.client, e.currentTarget.password.value); | |
| 155 | 155 | setStatus("connecting"); | |
| 156 | 156 | } | |
| 157 | 157 | }} |