API reference > @kontsedal/olas-react > OLAS_BOOTSTRAP_SCRIPT
OLAS_BOOTSTRAP_SCRIPT variable
Bootstrap script that primes the client's intake queue *before* React's hydration runs. Drop the string into renderToPipeableStream'sbootstrapScriptContent (or bootstrapScripts / a manual <script>):
ts
renderToPipeableStream(<App />, {
bootstrapScriptContent: OLAS_BOOTSTRAP_SCRIPT,
onShellReady() { ... },
})The intake is a tiny "push-only array". Batches land here, and a<HydrationBoundary> folds the ones already there into the root it builds. Once it commits, later pushes go through the forwarder it installs.
Signature:
typescript
OLAS_BOOTSTRAP_SCRIPT: string