From 336e2ddeb723b53f343d3ed5d6b5ebf8b4022710 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sun, 26 Dec 2021 23:04:14 +0000 Subject: [PATCH] chore: allow state to be visible globally --- src/mobx/State.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mobx/State.ts b/src/mobx/State.ts index 66516793..43355e4e 100644 --- a/src/mobx/State.ts +++ b/src/mobx/State.ts @@ -234,6 +234,7 @@ var state: State; export async function hydrateState() { state = new State(); + (window as any).state = state; await state.hydrate(); }