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

Function updateEntityState

lib/render.js:971–975  ·  view source on GitHub ↗

* Update component instance state.

(entity, nextState)

Source from the content-addressed store, hash-verified

969 */
970
971 function updateEntityState (entity, nextState) {
972 entity.pendingState = assign(entity.pendingState, nextState)
973 entity.dirty = true
974 invalidate()
975 }
976
977 /**
978 * Commit props and state changes to an entity.

Callers 1

setStateFunction · 0.85

Calls 1

invalidateFunction · 0.85

Tested by

no test coverage detected