@w5s/global-storageFunctionsuseGlobalValueuseGlobalValue CallableuseGlobalValue<Value>(key: unknown, initialValue: () => Value): ValueReturn a new global value if not previously set. This is handful when using hot module reload.@exampleconst myModuleState = useGlobalValue('@my-org/my-module', () => ({ foo: true }));const mySymbolState = useGlobalValue(Symbol.for('@my-org/my-module'), () => ({ bar: true }));Type parametersValue
Return a new global value if not previously set. This is handful when using hot module reload.