[Home](./index.md) > [@apollo/client-react-streaming](./client-react-streaming.md) > [registerLateInitializingQueue](./client-react-streaming.registerlateinitializingqueue.md) ## registerLateInitializingQueue() function Registers a queue that can be filled with data before it has actually been initialized with this function. Before calling this function, `window[key]` can just be handled as an array of data. When calling this funcation, all accumulated data will be passed to the callback. After calling this function, `window[key]` will be an object with a `push` method that will call the callback with the data. **Signature:** ```typescript declare function registerLateInitializingQueue(key: K, callback: (data: Parameters["push"]>[0]) => void): void; ``` ## Parameters
Parameter Type Description
key K
callback (data: Parameters<NonNullable<Window\[K\]>\["push"\]>\[0\]) => void
**Returns:** void