Skip to content

Commit da7f905

Browse files
feat(overmind): export the instance modes
1 parent 0a5fae6 commit da7f905

File tree

1 file changed

+5
-5
lines changed
  • packages/node_modules/overmind/src

1 file changed

+5
-5
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ const IS_DEVELOPMENT =
6161
!process.env.NODE_ENV || process.env.NODE_ENV === 'development'
6262
const IS_OPERATOR = Symbol('operator')
6363

64-
const MODE_DEFAULT = Symbol('MODE_DEFAULT')
65-
const MODE_TEST = Symbol('MODE_TEST')
66-
const MODE_SSR = Symbol('MODE_SSR')
64+
export const MODE_DEFAULT = Symbol('MODE_DEFAULT')
65+
export const MODE_TEST = Symbol('MODE_TEST')
66+
export const MODE_SSR = Symbol('MODE_SSR')
6767

6868
let hasWarnedDeprecatedValue = false
6969

@@ -92,9 +92,9 @@ export function createOvermindSSR<Config extends IConfiguration>(
9292
{
9393
mode: MODE_SSR,
9494
} as SSRMode
95-
) as OvermindSSR<Config>
95+
) as any
9696

97-
ssr.state = (ssr as any).proxyStateTree.getMutationTree().state
97+
ssr.state = ssr.proxyStateTree.getMutationTree().state
9898
ssr.hydrate = () => {
9999
return (ssr as any).proxyStateTree.mutationTree.flush().mutations
100100
}

0 commit comments

Comments
 (0)