reddit/play

Add debounce for live reload

Opened this issue · 2 comments

Editing code live leads to many errors. We could add 1-2s debounce for the live reload to let user finish writing the code

I believe you can tune this by adjusting the throttle on #setSrcSideEffects() of play-pen. there's also been discussion around adding a checkbox for enabling / disabling auto-play.

I think throttle would not let me achieve the intended behaviour, I think we should switch to debounce
Will prepare a PR, so we can see it in aciton