Skip to content

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

@SMKH-PRO

Description

@SMKH-PRO

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions