2019-10-25
…would you do that?
picture by Nathan Friend
…can you do?
picture by Florentijn Hofman
actions to initialize and access entities
keep entities in local variables of store modules
Disadvantages:
overwrite properties of game entities with (derived) store state
actions/mutations update store
Phaser rendering picks up changes
Disadvantages:
game entities register watchers for relevant store state
Disadvantages:
listener for dispatched store actions
triggers even if state remains same
Disadvantages:
…can you do it?
picture by dasMaichen
…is the carrot back?
picture by Nathan Friend
Object.freeze()
prevents reactivity<div>
s