Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NLKNguyen opened this issue Apr 15, 2022 · 0 comments

Comments

@NLKNguyen
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant