QingWei-Li / vuep

🎡 A component for rendering Vue components with live editor and preview.
https://cinwell.com/vuep/
MIT License
886 stars 103 forks source link

very slow refresh rate while typing (idea: debounce the updates) #40

Open trusktr opened 5 years ago

trusktr commented 5 years ago

Loving the project!

Some examples make the editor freeze, because it is updating the preview on every key stroke it seems like.

It may be a good idea to debounce (or throttle) updates to 100ms.

Another nice feature could be to provide a "run" or "play" button so that updates happen when desired.

And one more feature could be a checkbox that enables autorun, where when turned has to click "run".

trusktr commented 5 years ago

Cool, got debounce, and a rerun button working on my fork. Needs some styling though, very bad at the moment.