reddit / play

🛝 A little playground for building apps on Reddit.
https://developers.reddit.com/play
Other
6 stars 7 forks source link

Add debounce for live reload #26

Open Krakabek opened 4 months ago

Krakabek commented 4 months ago

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

niedzielski commented 4 months ago

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.

Krakabek commented 4 months ago

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