hyperstart / hyperapp-devtools

Developer tools for Hyperapp projects.
GNU General Public License v3.0
27 stars 3 forks source link

Time travelling debugger #1

Closed mrozbarry closed 6 years ago

mrozbarry commented 6 years ago

Just making a note for myself to implement and PR this if no one else does.

There are questions we'll need to answer:

Mytrill commented 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.