- Fix bug in stream.onListen that could result in getting wrong results from the cache
- BREAKING: Changed removeSingle to not include a key. And renamed the method to
remove
to indicate the object will be removed from the cache.
- Fix: Only return first element from getSingle when stream has events
- Fix: Notify listeners when there is no server data available.
- BREAKING: Renamed clearCache to removeList. Migrate to
removeList(key, emit: false)
to reproduce old behaviour - Added removeSingle
- Added option to remove select models by id via removeList(modelIds:[string]) and removeSingle(string)
- Added option to broadcast removals from cache via removeList(emit: bool), removeSingle(emit: bool) default true
- Added tests for the new functionality
- Avoid name clashes in the internal stream keys, to make sure different Types T are given unique steams
- Extracted working version with single model and list of models