Platform: store,select("state").subscribe() return undefined subscription

Created on 3 Oct 2017  路  1Comment  路  Source: ngrx/platform

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report  
[ ] Feature request
[ ] Documentation issue or request

What is the current behavior?


let adminState = this.store.select("admin").subscribe(a => {
adminState.unsubscribe();
if (a.fileTypes)
{
//login here
}
});

Expected behavior:


adminState should have subscription object instead of undefined

Version of affected browser(s),operating system(s), npm, node and ngrx:

"@ngrx/store": "^4.0.3",
"@ngrx/effects": "^4.0.5",
"rxjs": "5.4.3",
"@angular/common": "4.4.4",
"ionic-angular": "3.7.1"

>All comments

This is most likely a bug in the way your state is set up. Please use the chat room for support. https://gitter.im/ngrx/platform

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NathanWalker picture NathanWalker  路  3Comments

RichardMisiak picture RichardMisiak  路  3Comments

ghost picture ghost  路  3Comments

gperdomor picture gperdomor  路  3Comments

dollyshah-02-zz picture dollyshah-02-zz  路  3Comments