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

Fix: Infinite Loop using Livecode #302

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

JMarques1196
Copy link
Contributor

Closes #297

What change does this pull request introduce?
By removing :
sdk.watch("code", (changed) => { setCode(changed.code.script.content); });
and setting :
autoupdate: true,
the Livecode playground maintains the same functionality of updating when anything is typed and it no longer loops.
When looking at Livecodes documentation, it mentions that autoupdate should be set to true so the result page is automatically updated.
I'm not sure why only the Python scripts were looping, but this seems to be the cause.

Screenshots

Screen.Recording.2024-10-24.at.22.42.21.mov

Checklist

  • I worked on a branch other than main.
  • My branch is up-to-date with the Upstream main branch.
  • I have fixed potential errors using yarn lint.
  • I ran yarn build to check everything still builds successfully.

Copy link

vercel bot commented Oct 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 2:03pm

Copy link
Collaborator

@maltejur maltejur left a comment

Choose a reason for hiding this comment

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

Thanks

@maltejur maltejur enabled auto-merge October 25, 2024 13:57
@maltejur maltejur merged commit 88a153e into TheAlgorithms:main Oct 25, 2024
3 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.

[BUG] PYTHON BUG WHEN EDITING IN LIVECODE IDE
2 participants