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 Quill.tsx for react-compiler
Eric Roberts
2026-11-10T17:35:10ZLoading emoji data in the mention callback hits this compiler error:
(BuildHIR::lowerExpression) Handle Import expressions
Move the import into a function outside the component.
Semantic diff summary
0 added,
3 modified,
0 signature changed,
0 removed
across 2 analyzed files
+0
-1
scripts/compiler.test.mjs
#
+2
-1
src/components/Quill.tsx
#
| ... | ... | @@ -17,6 +17,7 @@ import { Mention } from "quill-mention"; | |
| 17 | 17 | import type { ScrollBlot, EmbedBlot } from "parchment"; | |
| 18 | 18 | import { CodeBlock } from "quill/modules/syntax"; | |
| 19 | 19 | import { CodeBlockContainer } from "quill/formats/code"; | |
| 20 | + | import { loadEmojiData } from "../util"; | |
| 20 | 21 | const Embed = QuillInner.import("blots/embed") as typeof EmbedBlot; | |
| 21 | 22 | const SyntaxCodeBlockContainer = QuillInner.import( | |
| 22 | 23 | "formats/code-block-container", |
| ... | ... | @@ -372,7 +373,7 @@ export const Quill = forwardRef( | |
| 372 | 373 | ) { | |
| 373 | 374 | if (mentionChar === ":") { | |
| 374 | 375 | emojiMart.init({ | |
| 375 | - | data: { ...(await import("@emoji-mart/data")) }, | |
| 376 | + | data: await loadEmojiData(), | |
| 376 | 377 | }); | |
| 377 | 378 | const emoticon = | |
| 378 | 379 | (await emojiMart.SearchIndex.search(":" + searchTerm)) ?? []; |