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 ff82571 commit 465530bCopy full SHA for 465530b
packages/node_modules/overmind-vue/src/index.ts
@@ -96,10 +96,10 @@ export default class VueApp<
96
// a callback that runs whenever a mutation
97
// matches the paths tracked on this component
98
componentOptions.mounted = function() {
99
- const vueInstance = this
100
- const paths = instance.clearTrackState(this.__trackId, () => {
101
- mounted && mounted.call(vueInstance)
102
- })
+ const paths = instance.clearTrackState(
+ this.__trackId,
+ mounted && mounted.bind(this)
+ )
103
instance.eventHub.emitAsync(EventType.COMPONENT_ADD, {
104
componentId,
105
componentInstanceId: this.__componentInstanceId,
0 commit comments