Implement a getter for kcContext

This commit is contained in:
garronej
2021-06-23 08:16:51 +02:00
parent 7123edc986
commit e3b41c9bd1
22 changed files with 326 additions and 297 deletions

View File

@ -1,8 +1,10 @@
import { createUseGlobalState } from "powerhooks";
import { kcContext } from "../KcContext";
import { getKcContext } from "../getKcContext";
import { getBestMatchAmongKcLanguageTag } from "./KcLanguageTag";
const { kcContext } = getKcContext();
//export const { useKcLanguageTag, evtKcLanguageTag } = createUseGlobalState(
const wrap = createUseGlobalState(
"kcLanguageTag",