MCPcopy Index your code
hub / github.com/tinyplex/tinybase / useSetPartialValuesCallback

Function useSetPartialValuesCallback

src/ui-react/hooks.ts:1063–1077  ·  view source on GitHub ↗
(
    getPartialValues: (parameter: Parameter, store: Store) => Values,
    getPartialValuesDeps?: DependencyList,
    storeOrStoreId?: StoreOrStoreId,
    then?: (store: Store, partialValues: Values) => void,
    thenDeps?: DependencyList,
  )

Source from the content-addressed store, hash-verified

1061
1062export const useSetPartialValuesCallback: typeof useSetPartialValuesCallbackDecl =
1063 <Parameter>(
1064 getPartialValues: (parameter: Parameter, store: Store) => Values,
1065 getPartialValuesDeps?: DependencyList,
1066 storeOrStoreId?: StoreOrStoreId,
1067 then?: (store: Store, partialValues: Values) => void,
1068 thenDeps?: DependencyList,
1069 ): ParameterizedCallback<Parameter> =>
1070 useStoreSetCallback(
1071 storeOrStoreId,
1072 PARTIAL + VALUES,
1073 getPartialValues,
1074 getPartialValuesDeps,
1075 then,
1076 thenDeps,
1077 );
1078
1079export const useSetValueCallback: typeof useSetValueCallbackDecl = <Parameter>(
1080 valueId: Id | GetId<Parameter>,

Callers 4

WriterFunction · 0.90
TestFunction · 0.90
SettersFunction · 0.50
SettersFunction · 0.50

Calls 1

useStoreSetCallbackFunction · 0.70

Tested by 2

WriterFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…