-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added isDebouncing in geosearch and naf slice, adjusted ui for RSAuto…
…complete
- Loading branch information
1 parent
583ce3a
commit 20f6e1d
Showing
13 changed files
with
111 additions
and
42 deletions.
There are no files selected for viewing
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
20 changes: 16 additions & 4 deletions
20
front/src/core-logic/domain/geosearch/geosearch.selectors.ts
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,16 +1,28 @@ | ||
import { createSelector } from "@reduxjs/toolkit"; | ||
import { createRootSelector } from "src/core-logic/storeConfig/store"; | ||
|
||
const suggestions = createRootSelector((state) => state.geosearch.suggestions); | ||
const geosearchState = createRootSelector((state) => state.geosearch); | ||
|
||
const isLoading = createRootSelector((state) => state.geosearch.isLoading); | ||
const isDebouncing = createSelector( | ||
geosearchState, | ||
(state) => state.isDebouncing, | ||
); | ||
|
||
const query = createRootSelector((state) => state.geosearch.query); | ||
const suggestions = createSelector( | ||
geosearchState, | ||
(state) => state.suggestions, | ||
); | ||
|
||
const value = createRootSelector((state) => state.geosearch.value); | ||
const isLoading = createSelector(geosearchState, (state) => state.isLoading); | ||
|
||
const query = createSelector(geosearchState, (state) => state.query); | ||
|
||
const value = createSelector(geosearchState, (state) => state.value); | ||
|
||
export const geosearchSelectors = { | ||
suggestions, | ||
isLoading, | ||
query, | ||
value, | ||
isDebouncing, | ||
}; |
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
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
Oops, something went wrong.