Skip to content

Commit

Permalink
STCOR-950 Added location to a hook in <MainNav> to fix comparing …
Browse files Browse the repository at this point in the history
…old `location` value
  • Loading branch information
BogdanDenis committed Feb 21, 2025
1 parent 94f6864 commit 805fb24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Change Help icon aria label to just Help in MainNav component. Refs STCOR-931.
* *BREAKING* remove token-based authentication code. Refs STCOR-918.
* *BREAKING* replace useSecureTokens conditionalsRefs STCOR-922.
* Added `location` to a hook in `<MainNav>` 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)
Expand Down
2 changes: 1 addition & 1 deletion src/components/MainNav/MainNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 805fb24

Please sign in to comment.