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

Function getStateFromUpdate

code/styling/public/app.js:7985–7992  ·  view source on GitHub ↗
(update, instance, prevState, props)

Source from the content-addressed store, hash-verified

7983}
7984
7985function getStateFromUpdate(update, instance, prevState, props) {
7986 var partialState = update.partialState;
7987 if (typeof partialState === 'function') {
7988 return partialState.call(instance, prevState, props);
7989 } else {
7990 return partialState;
7991 }
7992}
7993
7994function processUpdateQueue(current, workInProgress, queue, instance, props, renderExpirationTime) {
7995 if (current !== null && current.updateQueue === queue) {

Callers 1

processUpdateQueueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected