( previousClean: string, nextClean: string, )
| 10 | * string (e.g. stripping a trailing incomplete tag). Keeps layout stable. |
| 11 | */ |
| 12 | export function shouldSkipStreamRewind( |
| 13 | previousClean: string, |
| 14 | nextClean: string, |
| 15 | ): boolean { |
| 16 | if (!previousClean || !nextClean) { |
| 17 | return false; |
| 18 | } |
| 19 | return ( |
| 20 | nextClean.length < previousClean.length && |
| 21 | previousClean.startsWith(nextClean) |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Grow-only min-height while streaming so the container never collapses |
no outgoing calls
no test coverage detected