cheogram-www

created pr with cheogram-www/react-compiler-fixes.1 on 2026-11-10T18:57:22Z · by 3c31bc8c
commented on 2026-11-10T18:57:22Z · by 3c31bc8c
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 -3
checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:react-compiler-fixes [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:react-compiler-fixes
add comment to patch request:
ssh pr.pico.sh comment cheogram-www:react-compiler-fixes "lgtm!"
+3 -11 scripts/compiler.test.mjs #
......@@ -3,10 +3,6 @@ import { glob } from "node:fs/promises";
33 import { test } from "node:test";
44 import { createServer } from "vite";
55
6-const compilerSkips = new Set([
7- "components/Register.tsx",
8-]);
9-
106 test("React Compiler", async (t) => {
117 const server = await createServer({
128 mode: "compiler-test",
......@@ -36,13 +32,9 @@ test("React Compiler", async (t) => {
3632 cwd: "src",
3733 exclude: ["**/*.test.*", "**/*.d.ts"],
3834 })) {
39- await t.test(
40- `compiles src/${file}`,
41- { skip: compilerSkips.has(file) && "Known React Compiler diagnostics" },
42- async () => {
43- assert.ok(await server.transformRequest(`/src/${file}`));
44- },
45- );
35+ await t.test(`compiles src/${file}`, async () => {
36+ assert.ok(await server.transformRequest(`/src/${file}`));
37+ });
4638 }
4739 } finally {
4840 await server.close();
+2 -2 src/components/Register.tsx #
......@@ -13,7 +13,7 @@ import { Suspense, useState, FormEvent } from "react";
1313 import { Context, Accounts } from "../App";
1414 import { FormSection } from "./Form";
1515 import { newAccount } from "./Login";
16-import { href } from "../util";
16+import { href, reauthenticate } from "../util";
1717
1818 const RegisterInner = () => {
1919 const navigate = useNavigate();
......@@ -32,7 +32,7 @@ const RegisterInner = () => {
3232 const account = newAccount(accountId, idbp, persistence);
3333 if (data.has("password")) {
3434 const token = account.client.addPasswordNeededListener(() => {
35- account.client.usePassword("" + data.get("password"));
35+ reauthenticate(account.client, "" + data.get("password"));
3636 account.client.removeEventListener(token);
3737 });
3838 }
Back to top