src/redux/reducers/search.js
// Get data returned from the server and return it as the new state for user data
Get data returned from the server and return it as the new state for user data
Get data returned from the server and return it as the new state for user data
function searchSuccess(state, action) {
  return {
    ...state,
    loading: false,
    data: action.searchResult,
  };
}
function searchSuccess ( state , action ) { return { ... state , loading : false , data : action . searchResult , } ; }
Get data returned from the server and return it as the new state for user data
Get data returned from the server and return it as the new state for user data