Open dweedon opened 5 years ago
I agree. I am fighting with this issue right now. One of the most common things to do to data is to transform it into another object that is more suitable to be used by the UI but the object you select out of the state has to be the same type as what you transform it to, when you use select$
This is a...
What toolchain are you using for transpilation/bundling?
ngc
Environment
NodeJS Version: 8 Typescript Version: 2.8 Angular Version: 6.0.3 @angular-redux/store version: ^9.0.0 OS: High Sierra
Expected Behaviour:
Given the following code:
saveButtonText$
should be anObservable<string>
Actual Behaviour:
It errors out when
map(isSaving => isSaving ? 'Saving…' : 'Save')
maps fromObservable<boolean>
toObservable<string>
.Additional Notes:
https://github.com/angular-redux/store/blob/master/src/decorators/select.ts#L62
off hand this should be something like