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

Maximum call stack size exceeded (native stack depth) #165

Open
SMKH-PRO opened this issue Jul 25, 2022 · 0 comments
Open

Maximum call stack size exceeded (native stack depth) #165

SMKH-PRO opened this issue Jul 25, 2022 · 0 comments

Comments

@SMKH-PRO
Copy link

SMKH-PRO commented Jul 25, 2022

I am not sure what's causing this error.
When I set JS error handler it throws this error

Maximum call stack size exceeded (native stack depth)

so I console logged inside errorHandler function and found out that this function is being called continuously and this loop is causing call stack size exceed error.

I observed one more thing, when I pass allowInDevMode as false, the error resolves, but when its true the error is back, I haven't tested this on release build yet.

I am setting error handlers outside the component in my App.tsx file.

When I comment // setJSExceptionHandler(errorHandler, true) or when I pass false as the second argument, it works perfectly fine.

maybe I am doing something wrong, I have followed all the instructions in the documentation, attaching an image with error and code snippet for better understanding.

Screenshot 2022-07-25 at 5 16 15 PM

Thanks!

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

No branches or pull requests

1 participant