We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f723922 commit 049ea20Copy full SHA for 049ea20
packages/node_modules/overmind/src/index.ts
@@ -94,9 +94,11 @@ export function createOvermindSSR<Config extends IConfiguration>(
94
} as SSRMode
95
) as any
96
97
- ssr.state = ssr.proxyStateTree.getMutationTree().state
+ const mutationTree = ssr.proxyStateTree.getMutationTree()
98
+
99
+ ssr.state = mutationTree.state
100
ssr.hydrate = () => {
- return (ssr as any).proxyStateTree.mutationTree.flush().mutations
101
+ return mutationTree.flush().mutations
102
}
103
return ssr
104
0 commit comments