My service class, before calling a web service, needs to get a property called dataForUpdate from my state. Currently, I\'m doing it like this:
dataForUpdate
As of v4.x we are forced to put the take operator into the pipe like that to get it synchronous:
take
function getState(store: Store): State { let state: State; store.pipe(take(1)).subscribe(s => state = s); return state; }