Closed subodhpareek18 closed 4 years ago
One more thing we could do and it's probably a breaking change is to pass the reduxified service and not the service directly, and in which case it'll also automatically add a subscriber. Or maybe have an option to do both in order to keep backward compat.
const conversationsRealtime = new Realtime(client.service('conversations'), {
subscriber: (records, last) => {
reduxifiedServices.conversations.store({
connected: conversationsRealtime.connected,
last,
records
});
}
});
const conversationsRealtime = new Realtime(reduxifiedServices.conversations, {
feathersRedux: true // indicating the deeper integration to switch on
});
Currently
feathers-offline-realtime
when taking the first snapshot does not update theisLoading
prop in the relevant store created byfeathers-redux