mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
11 lines
404 B
Plaintext
11 lines
404 B
Plaintext
---
|
|
// Separate component so drainPageScripts() executes only at this point of the
|
|
// render stream (after the page content render has STARTED — registrations are
|
|
// synchronous, script content may be a promise).
|
|
import { drainPageScripts } from '@shared/lib/page-scripts';
|
|
|
|
const scripts = await Promise.all(drainPageScripts());
|
|
---
|
|
|
|
{scripts.length > 0 && <Fragment set:html={scripts.join('\n')} />}
|