diff --git a/src/client/client.js b/src/client/client.js index e5176b802..00a80c96f 100644 --- a/src/client/client.js +++ b/src/client/client.js @@ -395,6 +395,7 @@ class _ClientImpl { updateCredentials(credentials) { this.credentials = credentials; this.createDispatchers(); + this.notifySubscribers(); } } diff --git a/src/client/debug/main/Main.svelte b/src/client/debug/main/Main.svelte index bf181fd76..61bcad8a6 100644 --- a/src/client/debug/main/Main.svelte +++ b/src/client/debug/main/Main.svelte @@ -17,6 +17,17 @@ } return r; } + + let playerID = client.playerID; + let ctx = {}; + let G = {}; + client.subscribe((state) => { + if (state) { + G = state.G; + ctx = state.ctx; + } + playerID = client.playerID; + });