v0.1.2 connectFactoryObservable bug-fix

This commit is contained in:
Josep M Sobrepere 2020-05-27 22:16:05 +02:00
parent 22d7d3b2d4
commit 529e19501d
3 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@josepot/react-rxjs",
"version": "0.1.1",
"version": "0.1.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,5 +1,5 @@
{
"version": "0.1.1",
"version": "0.1.2",
"repository": {
"type": "git",
"url": "git+https://github.com/josepot/react-rxjs.git"

View File

@ -43,10 +43,10 @@ export function connectFactoryObservable<
}
const reactObservable$ = getObservable(...input).pipe(
distinctShareReplay(compare),
finalize(() => {
cache.delete(key)
}),
distinctShareReplay(compare),
)
cache.set(key, reactObservable$)