You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/hooks/useCheckIfRouteHasRemainedUnchanged.ts
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,31 @@ import useResponsiveLayout from './useResponsiveLayout';
6
6
7
7
/**
8
8
* Hook that returns a function to check if the currently active route remains the same as the route on which the component was initially rendered.
9
-
* The `isFocused` is set to `false` every time the component experiences a 'blur' event,
10
-
* except when opening an attachments modal, which is treated as an exception and does not trigger a reference update.
9
+
* The `isOnInitialRenderedRouteRef` is set to `false` every time the component experiences a 'blur' event,
10
+
* except when opening an attachments modal, which is treated as an exception and does not trigger a reference update because the attachments modal display overlap and we want to use shared VideoPlayer.
11
11
*
12
-
* @return Function that checks if the route where the component was rendered matches the currently active route.
12
+
* @return Function that checks if the route where the component was initially rendered matches the current active route.
0 commit comments