Skip to content

Conversation

@r281GQ
Copy link
Contributor

@r281GQ r281GQ commented Aug 19, 2024

Description

React-Live did not catch a runtime error (not caught in the transpile phase).

We can't catch all errors (like event handlers) but we can catch useEffect's cleanup functions.

Fixes #388

2024-08-15.18-14-26.mp4

The above video demonstrates, not a cleanup function not causing crash.

Worth noting, cleanup function runs one cycle "behind", therefore even if we correct the code the previous code with error still shows up.

@vercel
Copy link

vercel bot commented Aug 19, 2024

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

Name Status Preview Comments Updated (UTC)
react-live-docs-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 19, 2024 3:39pm

@changeset-bot
Copy link

changeset-bot bot commented Aug 19, 2024

🦋 Changeset detected

Latest commit: 4761252

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-live Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@carbonrobot
Copy link
Contributor

Working on some minor changes here, will update shortly

@carbonrobot
Copy link
Contributor

Causes a regression on #393

@carbonrobot carbonrobot merged commit 20050af into master Nov 19, 2024
3 checks passed
@carbonrobot carbonrobot deleted the fix-runtime-crash branch November 19, 2024 15:40
@github-actions github-actions bot mentioned this pull request Nov 19, 2024
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.

Editor crashes on syntax error in useEffect cleanup function

3 participants