-
Notifications
You must be signed in to change notification settings - Fork 18
Store messages instead of model? #19
Copy link
Copy link
Open
Description
Currently if I change init or my initial model, those changes will not get hot-loaded because hmr.js remembers the last model state.
I made a proof of concept back in 0.18 of doing hot loading by storing init and the list of messages instead of model: https://gist.github.com/rtfeldman/f259128af7fea653876c34cca033ae68
When you change your code, including init or the initial model, it would replay the messages on top of the new code. This would also continue to work for any of the existing use cases, because the current model state can be derived by replaying messages on top of the initial model.
Thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels