Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fd1f8a

Browse files
committed
Prevent extra Vue warning
1 parent f18c8b1 commit 2fd1f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/composition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function useFluent(): TranslationContext {
99
const instance = getCurrentInstance()
1010
assert(instance != null, 'useFluent called outside of setup')
1111

12-
const rootContext = inject(RootContextSymbol)
12+
const rootContext = inject(RootContextSymbol, undefined)
1313
assert(rootContext != null, 'useFluent called without installing plugin')
1414

1515
return getContext(rootContext, instance.proxy, true)

0 commit comments

Comments
 (0)