Skip to content

Commit a395276

Browse files
fix(overmind-react): fix updating paths of component with hook
1 parent 340f364 commit a395276

File tree

1 file changed

+2
-2
lines changed
  • packages/node_modules/overmind-react/src

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ export const createHook = <Config extends IConfiguration>(
115115
currentComponentInstanceId++
116116
)
117117

118-
tree.track((_, paths, flushId) => {
118+
tree.track((_, __, flushId) => {
119119
rerenderComponent()
120120
overmind.eventHub.emitAsync(EventType.COMPONENT_UPDATE, {
121121
componentId: component.__componentId,
122122
componentInstanceId,
123123
name,
124124
flushId,
125-
paths,
125+
paths: Array.from(tree.pathDependencies) as any,
126126
})
127127
})
128128

0 commit comments

Comments
 (0)