@frontegg/react-hooks
Advanced tools
Comparing version 1.23.33 to 1.23.35
import { FC } from 'react'; | ||
import { ContextOptions } from '@frontegg/rest-api'; | ||
declare type FronteggProviderProps = { | ||
app: any; | ||
app?: any; | ||
contextOptions?: ContextOptions; | ||
}; | ||
export declare const FronteggProvider: FC<FronteggProviderProps>; | ||
export {}; |
@@ -11,5 +11,6 @@ import React, { useMemo } from 'react'; | ||
const FronteggProvider = ({ children, app }) => { | ||
const context = ContextHolder.getContext(); | ||
const store = useMemo(() => createFronteggStore({ context }, app), []); | ||
const FronteggProvider = ({ children, app, contextOptions }) => { | ||
const context = contextOptions !== null && contextOptions !== void 0 ? contextOptions : app.options.contextOptions; | ||
ContextHolder.setContext(context); | ||
const store = useMemo(() => createFronteggStore({ context }, app), [app]); | ||
return React.createElement(Provider, { store: store }, children); | ||
@@ -16,0 +17,0 @@ }; |
{ | ||
"name": "@frontegg/react-hooks", | ||
"libName": "FronteggReactHooks", | ||
"version": "1.23.33", | ||
"version": "1.23.35", | ||
"author": "Frontegg LTD", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@frontegg/redux-store": "^1.23.33", | ||
"@frontegg/redux-store": "^1.23.35", | ||
"react-redux": "7.x" | ||
@@ -18,0 +18,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45737
344
61
2
269