Skip to content
Discussion options

You must be logged in to vote

Hi @MattiaMalandrone,

is it possible that the selector observable this.select(({ ...}) => ...); of ngrx/component-store could not work with ngrxLet directive with the suspenseTpl?

Suspense template from ngrxLet can be used with observables that don't emit the first value synchronously (such as HttpClient.get result) to display the loading template until the observable emits the first value. In the case of ComponentStore whose state is initialized eagerly (via constructor), all observables created by this.select((s) => s.prop) will emit the first value (initial state) immediately, so suspense template will be never shown.

I tried with an observable with the same type created with "of()"…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@MattiaMalandrone
Comment options

@markostanimirovic
Comment options

@markostanimirovic
Comment options

Answer selected by MattiaMalandrone
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants