diff --git a/CHANGELOG.md b/CHANGELOG.md index 61ff30c8..6bbdfae5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ * *BREAKING* replace useSecureTokens conditionalsRefs STCOR-922. * Set tenant context based on authentication response with overrideUser parameter on login (Eureka, ECS - Single tenant UX) STCOR-946. * Omit leading slash in paths passed to `ky` in `useModuleInfo`. Refs STCOR-949. +* Added `location` to a hook in `` to fix comparing old `location` value. Fixes STCOR-950. ## [10.2.0](https://github.com/folio-org/stripes-core/tree/v10.2.0) (2024-10-11) [Full Changelog](https://github.com/folio-org/stripes-core/compare/v10.1.1...v10.2.0) diff --git a/src/components/MainNav/MainNav.js b/src/components/MainNav/MainNav.js index ea49d7fb..c8caf92e 100644 --- a/src/components/MainNav/MainNav.js +++ b/src/components/MainNav/MainNav.js @@ -69,7 +69,7 @@ const MainNav = () => { return () => { _unsubscribe(); }; - }, []); // eslint-disable-line + }, [location]); // eslint-disable-line // if the location changes, we need to update the current module/query resource. // This logic changes the visible current app at the starting side of the Main Navigation.