📅  最后修改于: 2022-03-11 15:01:29.595000             🧑  作者: Mango
// It's not a problem with NGXS, it's the reference of JavaScript objects. Easy solution:
@Selector()
static todos(state: ToDoStateModel): ToDo[] {
return [...state.todos];
}