Skip to content

API reference > @kontsedal/olas-react > installStreamingIntake

installStreamingIntake() function ​

Connect a live root to the streamed hydration entries. The root first receives every batch that has already arrived, then each new batch as the stream delivers it. Several roots can be installed at once. Returns the uninstall function.

For a root built outside <HydrationBoundary>, such as one a custom provider shell creates. The boundary connects its own root, and folds the batches already on the page into the root as it builds it.

Signature:

typescript
export declare function installStreamingIntake<Api>(root: Root<Api>): () => void;

Parameters ​

Parameter

Type

Description

root

Root<Api>

Returns:

() => void

Released under the MIT License.