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

Function onChange

packages/examples/src/examples/i18n.ts:39–49  ·  view source on GitHub ↗
(dispatch: Dispatch<AnyAction>)

Source from the content-addressed store, hash-verified

37
38export const onChange =
39 (dispatch: Dispatch<AnyAction>) =>
40 (extensionState: any) =>
41 ({ errors }: Pick<JsonFormsCore, 'data' | 'errors'>) => {
42 if (!extensionState) {
43 return;
44 }
45 const localiseFunc =
46 localize[extensionState.locale.split('-')[0] as keyof typeof localize];
47 localiseFunc(errors);
48 dispatch(updateErrors(errors));
49 };
50
51export const uischema = {
52 type: 'VerticalLayout',

Callers 2

TestEmitterFunction · 0.50
onTabChangeFunction · 0.50

Calls 2

updateErrorsFunction · 0.90
dispatchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…