Sitelet https://github.com/react/react/pull/9291
Skip to content

Show more meanignful stack trace for ReactNative errors - #9291

Merged
bvaughn merged 5 commits into
react:masterfrom
bvaughn:ReactNativeFiberErrorDialog-upstream-sync
Mar 30, 2017
Merged

bvaughn merged 5 commits into
react:masterfrom
bvaughn:ReactNativeFiberErrorDialog-upstream-sync

Conversation

@bvaughn

@bvaughn bvaughn commented Mar 30, 2017

Copy link
Copy Markdown
Contributor

(This is an upstream sync from a change committed to fbsource.)

Clicking on the stack should jump to where the error actually occurred rather than to where it's logged in a redbox component.

Before

image

After

image

Clicking on the stack should jump to where the error actually occurred rather than to where it's logged in a redbox component.

exports.injection = {
injectDialog(fn: (e: CapturedError) => void) {
injectDialog(fn: (e: CapturedError) => ?boolean) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe let's make it strict?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure!

@bvaughn
bvaughn force-pushed the ReactNativeFiberErrorDialog-upstream-sync branch from 37a4f3c to 36fd48d Compare March 30, 2017 17:35
@bvaughn

bvaughn commented Mar 30, 2017

Copy link
Copy Markdown
Contributor Author

Going ahead and merging based on Tim's approval of this same change-set in fbsource.

@bvaughn
bvaughn merged commit 224487a into react:master Mar 30, 2017
@bvaughn
bvaughn deleted the ReactNativeFiberErrorDialog-upstream-sync branch March 30, 2017 22:15
@fakkiu

fakkiu commented May 16, 2017

Copy link
Copy Markdown

💯 ship.it

mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
* Show more meanignful stack trace for ReactNative errors

Clicking on the stack should jump to where the error actually occurred rather than to where it's logged in a redbox component.

* Made showDialog() return type stricter. Added mock and Flow types for ExceptionManager

* Prettier

* Handle null/string thrown errors

* Removed unused reference to emptyFunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants