Skip to content

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

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
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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