-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upversion dependencies & fix redux state warnings
- Loading branch information
1 parent
debc4e8
commit c4c36d3
Showing
7 changed files
with
55 additions
and
626 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { useAppSelector } from '~/redux/hooks'; | ||
import { isStateEqual } from '~/redux/selectors/utils'; | ||
import { DashboardNamespace } from './types'; | ||
|
||
export const useDashboardNamespace = (): DashboardNamespace => | ||
useAppSelector((state) => ({ dashboardNamespace: state.dashboardNamespace || '' })); | ||
useAppSelector((state) => ({ dashboardNamespace: state.dashboardNamespace || '' }), isStateEqual); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { isEqual } from 'lodash-es'; | ||
|
||
export const isStateEqual = <T>(stateBefore: T, stateAfter: T): boolean => | ||
isEqual(stateBefore, stateAfter); |