Skip to content

Commit f541ea8

Browse files
committed
avoid creating a shared instance when calling reset
1 parent 7ac29b2 commit f541ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function getActiveLanguage(): string {
8585
* Resets all the data stored in memory.
8686
*/
8787
export const reset = (): void => {
88-
return I18n.getSharedInstance().reset()
88+
sharedInstance?.reset() // avoid creating a shared instance here
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)