Function: useOpenedWindow()
function useOpenedWindow<Out, In, R>(factory): UseOpenedWindow<Out, In, R>;
Drive an openWindow() flow from a component: the factory is called on open(), and the child window's lifecycle is folded into render state. Reopening replaces the previous window; a stale window's outcome is ignored.
Type Parameters
| Type Parameter | Default type |
|---|---|
Out extends MessageMap | - |
In extends MessageMap | - |
R | unknown |
Parameters
| Parameter | Type |
|---|---|
factory | () => OpenedWindow<Out, In, R> |
Returns
UseOpenedWindow<Out, In, R>