Commit abf18d3
committed
fix: use static mode for completed markdown to prevent render delay
After the ORPC migration, async event boundaries let React deprioritize
Streamdown's useTransition() indefinitely, causing 10+ second delays
for plan body rendering.
Fix: Set mode='static' for completed content (parseIncompleteMarkdown=false)
to bypass useTransition() and render immediately. This aligns with
Streamdown's intended API usage.1 parent b061c16 commit abf18d3
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
0 commit comments