was genau bedeutet diese drei Punkte und warum brauche ich sie?Eckig was bedeutet drei Punkte in @NGRX
export function leadReducer(state: Lead[]= [], action: Action {
switch(action.type){
case ADD_LEAD:
return [...state, action.payload];
case REMOVE_LEAD:
return state.filter(lead => lead.id !== action.payload.id)
}
}
Es ist ES7 Ursache es arbeitet auf Objekt nicht Array. – alexKhymenko
@alexKhymenko Danke für die Nachricht :) – Wernerson