* 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)
| 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 |
no test coverage detected