@@ -0,0 +1,1733 @@
+package org.realityforge.arez;%0A%0Apublic class ArezContext%0A%7B%0A  private static final ArezContext c_instance = new ArezContext();%0A%0A%09/**%0A%09 * Currently running derivation%0A%09 */%0A%09//trackingDerivation: IDerivation %7C null = null;%0A%0A%09/**%0A%09 * Are we running a computation currently? (not a reaction)%0A%09 */%0A%09private int _computationDepth;%0A%0A%09/**%0A%09 * Each time a derivation is tracked, it is assigned a unique run-id%0A%09 */%0A%09private int _runId;%0A%0A%09/**%0A%09 * Are we in a batch block? (and how many of them)%0A%09 */%0A%09private int _inBatch;%0A%0A%09/**%0A%09 * Observables that don't have observers anymore, and are about to be%0A%09 * suspended, unless somebody else accesses it in the same batch%0A%09 *%0A%09 * @type %7BIObservable%5B%5D%7D%0A%09 */%0A%09//pendingUnobservations: IObservable%5B%5D = %5B%5D;%0A%0A%09/**%0A%09 * List of scheduled, not yet executed, reactions.%0A%09 */%0A%09//pendingReactions: Reaction%5B%5D = %5B%5D;%0A%0A%09/**%0A%09 * Are we currently processing reactions?%0A%09 */%0A%09private boolean _isRunningReactions;%0A%0A%09/**%0A%09 * Is it allowed to change observables at this point?%0A%09 * In general, MobX doesn't allow that when running computations and React.render.%0A%09 * To ensure that those functions stay pure.%0A%09 */%0A%09private boolean _allowStateChanges = true;%0A%09/**%0A%09 * If strict mode is enabled, state changes are by default not allowed%0A%09 */%0A%09private boolean _strictMode;%0A%0A%09/**%0A%09 * Used by createTransformer to detect that the global state has been reset.%0A%09 */%0A%09private int _resetId = 0;%0A%0A%09/**%0A%09 * Spy callbacks%0A%09 */%0A%09//spyListeners: %7B(change: any): void%7D%5B%5D = %5B%5D;%0A%0A%09/**%0A%09 * Globally attached error handlers that react specifically to errors in reactions%0A%09 */%0A%09//globalReactionErrorHandlers: ((error: any, derivation: IDerivation) =%3E void)%5B%5D = %5B%5D;%0A%0A%0A  public static ArezContext getInstance()%0A  %7B%0A    return c_instance;%0A  %7D%0A%7D%0A

Translate globalstate.ts