MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / mapStateToDispatchCellProps

Function mapStateToDispatchCellProps

packages/core/src/mappers/cell.ts:197–208  ·  view source on GitHub ↗
(
  state: JsonFormsState,
  ownProps: OwnPropsOfCell
)

Source from the content-addressed store, hash-verified

195};
196
197export const mapStateToDispatchCellProps = (
198 state: JsonFormsState,
199 ownProps: OwnPropsOfCell
200): DispatchCellStateProps => {
201 const props: StatePropsOfCell = mapStateToCellProps(state, ownProps);
202 const { renderers: _renderers, cells, ...otherOwnProps } = ownProps;
203 return {
204 ...props,
205 ...otherOwnProps,
206 cells: cells || state.jsonforms.cells || [],
207 };
208};
209
210export interface DispatchCellProps extends DispatchCellStateProps {}
211

Callers 1

ctxToDispatchCellPropsFunction · 0.90

Calls 1

mapStateToCellPropsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…