Skip to content

Commit 4c251cf

Browse files
committed
bump up most version with fix of unsubscription
1 parent 054d748 commit 4c251cf

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

lib/engine/most.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default function Engine() {
1818
next:f,
1919
error: (e)=>console.error('Something is Wrong:',e, e.stack),
2020
});
21-
subscriptions.isDisposed = subscriptions.disposable.disposed
2221
return subscriptions;
2322
}
2423
historyStream.travel = travelStream;

lib/react-most.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ export function connect(main, initprops={}) {
5656
}
5757
componentDidMount(){
5858
this.subscriptions = this.context[EACH_FLATMAP](this.sink$, (action)=>{
59-
if(this.subscriptions && this.subscriptions.isDisposed)
60-
return
61-
else if(action instanceof Function) {
59+
if(action instanceof Function) {
6260
this.setState((prevState, props)=>{
6361
let newState = action.call(this, prevState,props);
6462
if(initprops.history && newState != prevState){

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"testWDebugger": "node --harmony $(which bugger) ./node_modules/jest-cli/bin/jest.js --runInBand"
2525
},
2626
"dependencies": {
27-
"most": "^1.0.5",
27+
"most": "^1.1.1",
2828
"most-subject": "^5.2.0",
2929
"ramda": "^0.22.1",
3030
"react": "^15.3.2",

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,14 +1983,6 @@ mkdirp@^0.5.1, "mkdirp@>=0.5 0", mkdirp@~0.5.1, mkdirp@0.5.x:
19831983
dependencies:
19841984
minimist "0.0.8"
19851985

1986-
most:
1987-
version "1.0.5"
1988-
resolved "https://registry.yarnpkg.com/most/-/most-1.0.5.tgz#fb20427e50eb6672b466931b8f5867dac964342c"
1989-
dependencies:
1990-
"@most/multicast" "^1.2.3"
1991-
"@most/prelude" "^1.4.0"
1992-
symbol-observable "^1.0.2"
1993-
19941986
most-subject@^5.2.0:
19951987
version "5.2.0"
19961988
resolved "https://registry.yarnpkg.com/most-subject/-/most-subject-5.2.0.tgz#4976c169589ceaca08be77d49b95885238bc8373"
@@ -2007,6 +1999,14 @@ most@^1.1.0:
20071999
"@most/prelude" "^1.4.0"
20082000
symbol-observable "^1.0.2"
20092001

2002+
most@^1.1.1:
2003+
version "1.1.1"
2004+
resolved "https://registry.yarnpkg.com/most/-/most-1.1.1.tgz#75ccbb4c61a086b6794c378583ae0113b20fc7b5"
2005+
dependencies:
2006+
"@most/multicast" "^1.2.3"
2007+
"@most/prelude" "^1.4.0"
2008+
symbol-observable "^1.0.2"
2009+
20102010
ms@0.7.1:
20112011
version "0.7.1"
20122012
resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098"

0 commit comments

Comments
 (0)