Hello! I'm trying to understand Flux and how everything works and these videos are being super helpful!
Now, on the Store file, it's still a bit strange/confusing to me that we emit change by running
AppStore.emitChange() right after our switch statement instead of emitting the change after each function (ie.: after addItem or removeItem) as a callback or something).
Just for testing, I set a timeout on the 'addItem' function to delay its response/logic and the change is emitted 'before' the 'addItem' task has been completed, which breaks the App cause the Cart listens to the 'eventChange' and updates its own state while the latest data isn't there yet.
Should I be concerned about this happening with more complex apps or am I missing something here?