Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f18c8b1 commit 2fd1f8aCopy full SHA for 2fd1f8a
src/composition.ts
@@ -9,7 +9,7 @@ export function useFluent(): TranslationContext {
9
const instance = getCurrentInstance()
10
assert(instance != null, 'useFluent called outside of setup')
11
12
- const rootContext = inject(RootContextSymbol)
+ const rootContext = inject(RootContextSymbol, undefined)
13
assert(rootContext != null, 'useFluent called without installing plugin')
14
15
return getContext(rootContext, instance.proxy, true)
0 commit comments