Jak wepchnąć obiekt do tablicy w redukcji
case ADD_CATEGORY_SUCCESS:
return { ...state,categories:[...state.categories,action.payload] ,loading: true };
Stupid Stork
case ADD_CATEGORY_SUCCESS:
return { ...state,categories:[...state.categories,action.payload] ,loading: true };