Skip to content

Commit 0174c6d

Browse files
fix(overmind-vue): initialize on beforeCreate to allow pointing to state in data
1 parent 96e93f5 commit 0174c6d

File tree

1 file changed

+1
-1
lines changed
  • packages/node_modules/overmind-vue/src

1 file changed

+1
-1
lines changed

packages/node_modules/overmind-vue/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function createMixin(overmind, propsCallback) {
1010
let componentInstanceId = 0
1111

1212
return {
13-
beforeMount(this: any) {
13+
beforeCreate(this: any) {
1414
if (overmind.mode.mode === MODE_SSR) {
1515
this.overmind = {
1616
state: overmind.state,

0 commit comments

Comments
 (0)