Skip to content

Commit e6316aa

Browse files
feat(overmind-react): prefix HOC name with Connect to better separate in React devtools
1 parent 68cd256 commit e6316aa

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ export const createConnect = <A extends Overmind<Configuration>>(
145145
componentInstanceId = componentInstanceId++
146146
currentFlushId = 0
147147
componentDidMount() {
148-
console.log(this.tree)
149148
overmind.eventHub.emitAsync(EventType.COMPONENT_ADD, {
150149
componentId: populatedComponent.__componentId,
151150
componentInstanceId: this.componentInstanceId,
@@ -200,7 +199,9 @@ export const createConnect = <A extends Overmind<Configuration>>(
200199
}
201200

202201
Object.defineProperties(HOC, {
203-
name: { value: component.displayName || component.name || '' },
202+
name: {
203+
value: 'Connect' + component.displayName || component.name || '',
204+
},
204205
})
205206

206207
return HOC as any

0 commit comments

Comments
 (0)