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 9af67bb commit b53b9d6Copy full SHA for b53b9d6
packages/node_modules/overmind/src/derived.ts
@@ -41,6 +41,12 @@ class Derived {
41
}
42
)
43
44
+ eventHub.emit('derived', {
45
+ path,
46
+ paths: Array.from(this.paths),
47
+ updateCount: this.updateCount,
48
+ value: this.value,
49
+ })
50
this.updateCount++
51
52
@@ -49,13 +55,6 @@ class Derived {
55
proxyStateTree.addTrackingPath(path)
56
57
- eventHub.emit('derived', {
53
- path,
54
- paths: Array.from(this.paths),
- updateCount: this.updateCount,
- value: this.value,
- })
58
-
59
return this.value
60
61
0 commit comments