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

Disable run button when running #38

Merged
merged 5 commits into from
Feb 10, 2025

Conversation

Jamie-Chang
Copy link
Contributor

Big fan of your project!

Noticed that you can spam click run and that'll run the code multiple times concurrently.
So I've opportunistically made a small change to disable the run button while pyodide worker is running.

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is the correct way to use props in solid-js according to their docs.

@@ -75,7 +78,7 @@ export default function () {
</aside>
</header>
<section>
<Editor runCode={runCode} />
<Editor runCode={runCode} running={running} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Editor runCode={runCode} running={running} />
<Editor runCode={runCode} running={running()} />

@Jamie-Chang
Copy link
Contributor Author

I believe this is the correct way to use props in solid-js according to their docs.

Ah I see what you mean now, thanks!

@samuelcolvin samuelcolvin enabled auto-merge (squash) February 10, 2025 11:04
@samuelcolvin
Copy link
Member

thanks so much.

@samuelcolvin samuelcolvin merged commit 882439b into pydantic:main Feb 10, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants