viebel/klipse

Any way to evaluate a snippet only when a button is clicked? (not evaluate all the time)

NLKNguyen opened this issue · 0 comments

This is amazing. The only issue that seems obvious but I can't find an answer is how to trigger the snippet evaluation only when the user clicks a button (similar to Leetcode's RUN button or any JS IDE in browser really).

From my observation, auto evaluation is more of a risk than a feature. I can't imagine any use case for auto evaluation except for demonstrating simple stateless expressions. Beyond that, it gets very strange, e.g. a snippet of SQL insert statements that keep inserting to the table as I'm still writing, the typical infinite loop issue when I haven't finished writing the loop body yet, etc.

Is there any way to turn off auto evaluation and trigger only when a button is clicked?

Thanks for the awesome work!