Skip to content

Sentry React Native promise patching causes problems in ClojureScript advanced compilation #157

@viesti

Description

@viesti

It seems that when using Sentry, promises break in ClojureScript advanced compilation. I didn't investigate too deep yet, but seems as if, for example in .then and p/then calls, the argument is somehow a promise and not the value.

Sentry documentation has instructions for disabling it's automatic patching of Promises, which seems to help: https://docs.sentry.io/platforms/react-native/troubleshooting/#disable-auto-patching

  (sentry/init
   (->js {...
          ;; Seems to break promises in CLJS advanced build
          :patchGlobalPromise false
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions