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

Function getStateFromUpdate

code/third-party/public/app.js:7218–7225  ·  view source on GitHub ↗
(update, instance, prevState, props)

Source from the content-addressed store, hash-verified

7216}
7217
7218function getStateFromUpdate(update, instance, prevState, props) {
7219 var partialState = update.partialState;
7220 if (typeof partialState === 'function') {
7221 return partialState.call(instance, prevState, props);
7222 } else {
7223 return partialState;
7224 }
7225}
7226
7227function processUpdateQueue(current, workInProgress, queue, instance, props, renderExpirationTime) {
7228 if (current !== null && current.updateQueue === queue) {

Callers 1

processUpdateQueueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected