Skip to content

Commit

Permalink
chore(is-active-route): Updated implementation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Aug 3, 2021
1 parent 7fb86db commit b7658db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/Navigation/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ function dismissModal(shouldOpenDrawer = false) {
/**
* Check whether the passed route is currently Active or not.
*
* Previous implementation used navigationRef.current.getCurrentRoute().path, which was
* undefined in the first navigation. Hence, in our current solution, we're rebuilding
* the active route using the useLinkBuilder hook that takes routeName and params as the arguments.
* Building path with useLinkBuilder since navigationRef.current.getCurrentRoute().path is undefined in the first navigation.
*
* @param {String} routePath Path to check
* @return {Boolean} is active
Expand Down

0 comments on commit b7658db

Please sign in to comment.