MCPcopy
hub / github.com/pmndrs/react-spring / declareUpdate

Function declareUpdate

packages/core/src/SpringValue.ts:1123–1129  ·  view source on GitHub ↗
(props: any)

Source from the content-addressed store, hash-verified

1121 * A modified version of `createUpdate` meant for declarative APIs.
1122 */
1123export function declareUpdate(props: any) {
1124 const update = createUpdate(props)
1125 if (is.und(update.default)) {
1126 update.default = getDefaultProps(update)
1127 }
1128 return update
1129}
1130
1131/** Find keys with defined values */
1132function findDefined(values: Lookup, keys: Set<string>) {

Callers 1

declareUpdatesFunction · 0.90

Calls 2

getDefaultPropsFunction · 0.90
createUpdateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…