Skip to content

Commit 18090b5

Browse files
committed
only use from for most only combinator
1 parent 3e62388 commit 18090b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/history.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ export default function initHistory(contextHistory){
77
return acc;
88
}, [])
99
.multicast()
10-
let travel = from(contextHistory.travel)
10+
let travel = contextHistory.travel
1111
history.cursor = -1
12-
history.travel = travel
12+
history.travel = from(travel)
1313
.sample((offset,states)=>{
1414
let cursor = offset(states.length+history.cursor)
1515
if(cursor<states.length&&cursor>=0){

0 commit comments

Comments
 (0)