Reconcile the reaction components
(
element:
| React.FunctionComponentElement<any>
| React.ComponentElement<any, any>,
action?: Action,
getOnSearchOptions?: boolean
)
| 405 | |
| 406 | /** Reconcile the reaction components */ |
| 407 | function reconcile( |
| 408 | element: |
| 409 | | React.FunctionComponentElement<any> |
| 410 | | React.ComponentElement<any, any>, |
| 411 | action?: Action, |
| 412 | getOnSearchOptions?: boolean |
| 413 | ): [any, Promise<any>[], SearchOptions] { |
| 414 | const reconcilerInstance = Reconciler(new HostConfig()); |
| 415 | const root: any = { |
| 416 | isRoot: true, |
| 417 | action, |
| 418 | promises: new Array<Promise<any>>(), |
| 419 | getOnSearchOptions, |
| 420 | }; |
| 421 | const container = reconcilerInstance.createContainer(root, false, false); |
| 422 | |
| 423 | reconcilerInstance.updateContainer(element, container, null, null); |
| 424 | |
| 425 | return [root.node, root.promises, root.onSearchOptions]; |
| 426 | } |
| 427 | |
| 428 | /** Render the reaction components */ |
| 429 | export async function render( |
no outgoing calls
no test coverage detected