Closed mrozbarry closed 6 years ago
Here are my comments/answers:
It looks like you're already injecting a set state method, so has any work been done beyond that?
Yes, I have seen what you did with hyperapp-debug and I wanted to add it to the devtools. This was the first (easy) step to do that.
Can time travelling change the future?
That would be nice, we need to decide what we do when you decide to "dump the original timeline":
Related, is there a good way to serialize/deserialize to share state for debug reports?
I have done no work regarding this so far, but you are right that would be good... The first application for this would be to store it into local storage and reload it on restart -> super powerful HMR! This is the reason why you can see the run in the pane, the idea is that later you will be able to see the previous runs (loaded from the local storage) and time travel to them.
Just making a note for myself to implement and PR this if no one else does.
There are questions we'll need to answer:
Date
are valid to pass into JSON.stringify(), but JSON.parse() has no way to know if data needs to be converted back toDate
.