diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-06 22:51:10 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-06 22:51:10 -0700 |
commit | 6bce4b2802d06818f33b260ca4353331ea4b2df9 (patch) | |
tree | 1aafefb3645707b8fdebe5d8acee7c94eebda041 /extension/react-app/src/redux/selectors | |
parent | f96eecb0a531eaef86a503c216882f196ed9299e (diff) | |
download | sncontinue-6bce4b2802d06818f33b260ca4353331ea4b2df9.tar.gz sncontinue-6bce4b2802d06818f33b260ca4353331ea4b2df9.tar.bz2 sncontinue-6bce4b2802d06818f33b260ca4353331ea4b2df9.zip |
refactor: :recycle: hoist FullState up to redux
Diffstat (limited to 'extension/react-app/src/redux/selectors')
-rw-r--r-- | extension/react-app/src/redux/selectors/debugContextSelectors.ts | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/extension/react-app/src/redux/selectors/debugContextSelectors.ts b/extension/react-app/src/redux/selectors/debugContextSelectors.ts deleted file mode 100644 index 89201bb7..00000000 --- a/extension/react-app/src/redux/selectors/debugContextSelectors.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { RootStore } from "../store"; - -const selectDebugContext = (state: RootStore) => { - return { - ...state.debugState.debugContext, - rangesInFiles: state.debugState.debugContext.rangesInFiles.filter( - (_, index) => state.debugState.rangesMask[index] - ), - }; -}; - -const selectAllRangesInFiles = (state: RootStore) => { - return state.debugState.debugContext.rangesInFiles; -}; - -const selectRangesMask = (state: RootStore) => { - return state.debugState.rangesMask; -}; - -const selectDebugContextValue = (state: RootStore, key: string) => { - return (state.debugState.debugContext as any)[key]; -}; - -export { - selectDebugContext, - selectDebugContextValue, - selectAllRangesInFiles, - selectRangesMask, -}; |