@sophiebits @dan_abramov @sebmarkbage Curious: has anyone yet used Hooks to build a state-preserving live editing tool? Reloads are so awful—I'm still hoping for DisplayScript's glorious ability to update the running program on every editor keypress without losing state. :)
-
-
Yeah, if you can know which node the keypress is going into you can do a much better job much faster than ex post facto diff reconstruction. tbh tho this is still going to be hard because so many keypresses yield inconsistent states, so maybe you want structural editing?
-
I think you could solve the reordering problem using flow-parser’s AST output actually (in the common case that lval bindings for calls to hooks stay constant). DS is robust to those intermediate states by speculatively evaluating each key press and unwinding if needed. So good.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.