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

Function getStateFromUpdate

code/one-direction-data-flow/public/app.js:7858–7865  ·  view source on GitHub ↗
(update, instance, prevState, props)

Source from the content-addressed store, hash-verified

7856}
7857
7858function getStateFromUpdate(update, instance, prevState, props) {
7859 var partialState = update.partialState;
7860 if (typeof partialState === 'function') {
7861 return partialState.call(instance, prevState, props);
7862 } else {
7863 return partialState;
7864 }
7865}
7866
7867function processUpdateQueue(current, workInProgress, queue, instance, props, renderExpirationTime) {
7868 if (current !== null && current.updateQueue === queue) {

Callers 1

processUpdateQueueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected