MCPcopy Create free account
hub / github.com/drcmda/react-contextual / getStateUpdateFunctions

Function getStateUpdateFunctions

src/store.js:29–41  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

27}
28
29function getStateUpdateFunctions(state) {
30 return Object.keys(state)
31 .filter(name => typeof state[name] === 'function')
32 .reduce(
33 (acc, name) => {
34 acc[name] = state[name]
35 return acc
36 },
37 {
38 setState: props => props,
39 }
40 )
41}
42
43export class RenderPure extends React.PureComponent {
44 render() {

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected