MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getStateFromUpdate

Function getStateFromUpdate

code/higher-order-components/public/app.js:7979–7986  ·  view source on GitHub ↗
(update, instance, prevState, props)

Source from the content-addressed store, hash-verified

7977}
7978
7979function getStateFromUpdate(update, instance, prevState, props) {
7980 var partialState = update.partialState;
7981 if (typeof partialState === 'function') {
7982 return partialState.call(instance, prevState, props);
7983 } else {
7984 return partialState;
7985 }
7986}
7987
7988function processUpdateQueue(current, workInProgress, queue, instance, props, renderExpirationTime) {
7989 if (current !== null && current.updateQueue === queue) {

Callers 1

processUpdateQueueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected