MCPcopy
hub / github.com/anthonyshort/deku / setState

Function setState

lib/render.js:212–216  ·  view source on GitHub ↗

* Whenever setState or setProps is called, we mark the entity * as dirty in the renderer. This lets us optimize the re-rendering * and skip components that definitely haven't changed. * * @param {Entity} entity * * @return {Function} A curried function for updating the state of an

(entity)

Source from the content-addressed store, hash-verified

210 */
211
212 function setState (entity) {
213 return function (nextState) {
214 updateEntityState(entity, nextState)
215 }
216 }
217
218 /**
219 * Tell the app it's dirty and needs to re-render. If batching is disabled

Callers 15

renderEntityFunction · 0.85
flushMountQueueFunction · 0.85
updateEntityFunction · 0.85
addEventFunction · 0.85
index.jsFile · 0.85
afterMountFunction · 0.85
onClickTestFunction · 0.85
onClickFunction · 0.85
afterMountFunction · 0.85
hoverFunction · 0.85
blurFunction · 0.85
removeItemFunction · 0.85

Calls 1

updateEntityStateFunction · 0.85

Tested by

no test coverage detected