0.0.64 • Published 4 months ago
com.brixip.iasys.loader v0.0.64
Brix Loader Helper Package
- To install the package
npm install com.brixip.iasys.loader
About BRIX_LOADER
Brix loader work as a wrapper. If you want add use ODS authentication then wrappe your application by help of loader.
Using BRIX_LOADER.addBrixLoaderDependencie()
import BRIX_LOADER from "com.brixip.iasys.loader";
export default function App() {
const router = BRIX_LOADER.addBrixLoaderDependencie("BRIX_PLATFORM", [AdministratorRoute]);
return (
<LanguageWrapper defaultResVal={resource}>
<RouterProvider router={createBrowserRouter(router)} />
</LanguageWrapper>
);
}
app_context_path = www.iasys.com/app_context_path (www.iasys.com/brix_platform/login)
Using BRIX_LOADER.useLoaderContext()
import BRIX_LOADER from "com.brixip.iasys.loader";
export default function App() {
const {loaderCtx, setLoaderCtx} = BRIX_LOADER.useLoaderContext();
const {currentLoginUser, selectedAppInfo} = loaderCtx;
return (
<div>
<span>Your HTML </span>
</div>
);
}
0.0.64
4 months ago
0.0.62
4 months ago
0.0.63
4 months ago
0.0.56
4 months ago
0.0.57
4 months ago
0.0.58
4 months ago
0.0.60
4 months ago
0.0.61
4 months ago
0.0.59
4 months ago
0.0.51
4 months ago
0.0.52
4 months ago
0.0.53
4 months ago
0.0.54
4 months ago
0.0.55
4 months ago
0.0.49
4 months ago
0.0.50
4 months ago
0.0.3
5 months ago
0.0.2
5 months ago
0.0.1
5 months ago