Open OliverJAsh opened 6 years ago
It's totally safe to pass in an plain Observable that is not a Subject. Changing the name wouldn't be a breaking change since it's an internal detail so that's also cool too, though I wouldn't call it state$
because that's what StateObservable itself is usually referred to as and IMO that's confusing. RxJS itself would usually call that parameter source
Good to know, thanks. I'll raise a PR to rename the param and correct the type.
Do you want to request a feature or report a bug?
potential bug
What is the current behavior? I am constructing my own
StateObservable
s and thestateSubject
parameter asks for aSubject
, but it seems it only needs anObservable
: https://github.com/redux-observable/redux-observable/blob/fecf1455f5f68e6a3b164a21b6f7dad05c8882b0/src/StateObservable.js#L4Is it safe to rename the parameter to
state$
and pass inObservable
s instead ofSubject
s? Or is there a good reason to keep it how it is?For context, the reason I am constructing my own
StateObservable
relates to #562.