Skip to content

Commit 289b0a6

Browse files
committed
pass the instance to onInit callback
1 parent 175070c commit 289b0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/component/src/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export class Provider<T extends Name> {
272272
existingCallbacks.add(callback);
273273
this.onInitCallbacks.set(normalizedIdentifier, existingCallbacks);
274274

275-
const existingInstance = this.instances.has(normalizedIdentifier);
275+
const existingInstance = this.instances.get(normalizedIdentifier);
276276
if (existingInstance) {
277277
callback(existingInstance, normalizedIdentifier);
278278
}

0 commit comments

Comments
 (0)