Skip to main content

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 ParameterDefault type
Out extends MessageMap-
In extends MessageMap-
Runknown

Parameters

ParameterType
factory() => OpenedWindow<Out, In, R>

Returns

UseOpenedWindow<Out, In, R>