Skip to content

Commit

Permalink
Update PrivateRoute.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaib-aot authored May 29, 2024
1 parent ca93bc1 commit 7473260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms-flow-web/src/components/PrivateRoute.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const PrivateRoute = React.memo((props) => {
selectedLanguage ;
dispatch(setLanguage(lang));
}
}, [kcInstance, isAuth, tenant?.tenantData]);
}, [kcInstance, tenant?.tenantData]);

// useMemo prevents unneccessary rerendering caused by the route update.

Expand Down

0 comments on commit 7473260

Please sign in to comment.