I am learning NGXS, I have a lazy selector as below
@Selector()
static getStudent(state: StudentModel) {
return (std_id: string) => {
return state.students[std_id];
}
}
in component, I tried to get a snapshot of that selector
let _student = this.store.selectSnapshot(StudentState.getStudent);
console.log('_student : ', JSON.stringify(_student ));
But the result is undefined
Any Suggestion is appreciated