funcool / funcool/promesa

Sentry React Native promise patching causes problems in ClojureScript advanced compilation

Open
#157 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
547
Forks
64
PR merge metrics
No merged PRs in 30d

Description

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

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.