@@ -145,7 +145,7 @@ export const reducer = slice.reducer;
145145export const getLocations =
146146 ( criteria : SearchCriteria ) : AppThunk =>
147147 async ( dispatch ) => {
148- const { signal } = createCancellableRequest ( ) ;
148+ const { signal } = createCancellableRequest ( 'getLocations' ) ;
149149 try {
150150 dispatch ( slice . actions . setLoadingGet ( { loading : true } ) ) ;
151151 const locations = await api . post < Page < Location > > (
@@ -164,7 +164,7 @@ export const getLocations =
164164export const getMoreLocations =
165165 ( criteria : SearchCriteria , pageNum : number ) : AppThunk =>
166166 async ( dispatch ) => {
167- const { signal } = createCancellableRequest ( ) ;
167+ const { signal } = createCancellableRequest ( 'getMoreLocations' ) ;
168168 criteria = { ...criteria , pageNum } ;
169169 try {
170170 dispatch ( slice . actions . setLoadingGet ( { loading : true } ) ) ;
@@ -195,7 +195,7 @@ export const getLocationDetails =
195195 dispatch ( slice . actions . setLoadingGet ( { loading : false } ) ) ;
196196 } ;
197197export const getLocationsMini = ( ) : AppThunk => async ( dispatch ) => {
198- const { signal } = createCancellableRequest ( ) ;
198+ const { signal } = createCancellableRequest ( 'getLocationsMini' ) ;
199199 try {
200200 dispatch ( slice . actions . setLoadingGet ( { loading : true } ) ) ;
201201 const locations = await api . get < LocationMiniDTO [ ] > ( 'locations/mini' , {
0 commit comments