MCPcopy
hub / github.com/mobxjs/mobx / assertProxies

Function assertProxies

packages/mobx/src/utils/utils.ts:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21const plainObjectString = Object.toString()
22
23export function assertProxies() {
24 if (!hasProxy) {
25 die(
26 __DEV__
27 ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`"
28 : "Proxy not available"
29 )
30 }
31}
32
33export function warnAboutProxyRequirement(msg: string) {
34 if (__DEV__ && globalState.verifyProxies) {

Callers 2

createObservableArrayFunction · 0.85

Calls 1

dieFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…