NgRx ngxs Store set get

agnusdei·2023년 7월 20일
constructor(private store: Store){}

this.store.dispatch(new SetAuth(res.user)); // set
this.auth = this.store.selectSnapshot(AuthState); // get
profile
DevSecOps, Pentest, Cloud(OpenStack), Develop, Data Engineering, AI-Agent

1개의 댓글

comment-user-thumbnail
2023년 7월 20일

좋은 글 잘 읽었습니다, 감사합니다.

답글 달기