Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: Re-throw error on JS side instead of just logging on native side #2366

Merged
merged 4 commits into from
Jan 11, 2024

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Jan 9, 2024

What

Inspired by Reanimated (thanks @tomekzaw!!), we now also re-throw errors on the JS side using runOnJS (or the Worklets equivalent of it) instead of doing that part natively.

This simplifies the native code a tiny bit, and makes catching errors easier (hopefully).

Changes

Tested on

Related issues

Copy link

vercel bot commented Jan 9, 2024

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

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 4:05pm

@mrousavy mrousavy merged commit 34c5b11 into main Jan 11, 2024
@mrousavy mrousavy deleted the feat/frame-processor-errors branch January 11, 2024 16:23
isaaccolson pushed a commit to isaaccolson/deliveries-mobile that referenced this pull request Oct 30, 2024
mrousavy#2366)

* feat: Re-throw error on JS side instead of just logging on native side

* fix: Fix proxy

* fix: Fix app crash by only logging error

* fix: Use `global.ErrorUtils` (from reanimated)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant