MCPcopy
hub / github.com/maxchehab/phelia / reconcile

Function reconcile

src/core/reconciler.ts:407–426  ·  view source on GitHub ↗

Reconcile the reaction components

(
  element:
    | React.FunctionComponentElement<any>
    | React.ComponentElement<any, any>,
  action?: Action,
  getOnSearchOptions?: boolean
)

Source from the content-addressed store, hash-verified

405
406/** Reconcile the reaction components */
407function 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 */
429export async function render(

Callers 15

ButtonFunction · 0.85
SectionFunction · 0.85
ConfirmFunction · 0.85
OptionFunction · 0.85
DatePickerFunction · 0.85
ModalFunction · 0.85
InputFunction · 0.85
TextFieldFunction · 0.85
CheckboxesFunction · 0.85
OverflowMenuFunction · 0.85
RadioButtonsFunction · 0.85
OptionGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected