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