Skip to content

Commit

Permalink
added debug for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunarora-eGov committed Mar 2, 2024
1 parent 30a8987 commit 3dc7667
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion micro-ui/web/packages/core/src/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const DigitUIWrapper = ({ stateCode="pg", enabledModules, moduleReducers,default
return <Loader page={true} />;
}


debugger
const i18n = getI18n();
return (
<Provider store={getStore(initData, moduleReducers(initData))}>
Expand Down
1 change: 1 addition & 0 deletions micro-ui/web/packages/ui-libraries/src/hooks/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const useStore = ({ stateCode, moduleCode, language }) => {
};

export const useInitStore = (stateCode, enabledModules) => {
console.log("inside initStore", stateCode, enabledModules);
const { isLoading, error, isError, data } = useQuery(
["initStore", stateCode, enabledModules],
() => StoreService.digitInitData(stateCode, enabledModules),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export const StoreService = {
return await Promise.all(allBoundries);
},
digitInitData: async (stateCode, enabledModules) => {
console.log("inside digitInitData",stateCode,enabledModules);
debugger
const { MdmsRes } = await MdmsService.init(stateCode);
const stateInfo = MdmsRes["common-masters"]?.StateInfo?.[0]||{};
const uiHomePage = MdmsRes["common-masters"]?.uiHomePage?.[0]||{};
Expand Down

0 comments on commit 3dc7667

Please sign in to comment.