Skip to content

Commit 7ac29b2

Browse files
committed
set sharedInstance to null on reset
1 parent 4792d66 commit 7ac29b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,10 @@ export class I18n {
355355
for (const [key] of Object.entries(this.activeMessages)) {
356356
this.activeMessages[key] = null
357357
}
358+
359+
if (this === sharedInstance) {
360+
sharedInstance = null
361+
}
358362
}
359363

360364
/**

0 commit comments

Comments
 (0)