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

Function getStateFromUpdate

code/communication/public/app.js:8020–8027  ·  view source on GitHub ↗
(update, instance, prevState, props)

Source from the content-addressed store, hash-verified

8018}
8019
8020function getStateFromUpdate(update, instance, prevState, props) {
8021 var partialState = update.partialState;
8022 if (typeof partialState === 'function') {
8023 return partialState.call(instance, prevState, props);
8024 } else {
8025 return partialState;
8026 }
8027}
8028
8029function processUpdateQueue(current, workInProgress, queue, instance, props, renderExpirationTime) {
8030 if (current !== null && current.updateQueue === queue) {

Callers 1

processUpdateQueueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected