You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current scope may be kept similar to how we currently keep the current hub, but this is SDK specific and not part of this RFC.
97
97
98
-
When calling `getCurrentScope()` before a scope was made the current one (=before init was called), we will return a new scope with a noop client.
98
+
When calling `getCurrentScope()` before a scope was made the current one (=before `Sentry.init` was called), we will return a new scope with a noop client.
99
99
A noop client is a regular client that simply does not send anything.
100
100
101
101
This way, the API for `getClient()` can always return a client, and users do not have to guard against this being undefined all the time.
0 commit comments