cycle-gear
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -0,0 +0,0 @@ { |
@@ -50,3 +50,3 @@ import * as Rx from 'rx'; | ||
let actions = gear.intent ? gear.intent(sources) : defaultIntent(sources); | ||
let state$ = (gear.model ? gear.model(actions) : defaultModel(sources)).share(); | ||
let state$ = (gear.model ? gear.model(actions) : defaultModel(sources)).shareReplay(1); | ||
let views = teeth.reduce((accum, tooth) => Object.assign(accum, { | ||
@@ -53,0 +53,0 @@ [tooth]: state$.filter(toothFilter(tooth, gear.teeth[tooth])).map(toothView(tooth, gear.teeth[tooth])), |
@@ -53,3 +53,3 @@ "use strict"; | ||
var actions = gear.intent ? gear.intent(sources) : defaultIntent(sources); | ||
var state$ = (gear.model ? gear.model(actions) : defaultModel(sources)).share(); | ||
var state$ = (gear.model ? gear.model(actions) : defaultModel(sources)).shareReplay(1); | ||
var views = teeth.reduce(function (accum, tooth) { return Object.assign(accum, (_a = {}, | ||
@@ -56,0 +56,0 @@ _a[tooth] = state$.filter(toothFilter(tooth, gear.teeth[tooth])).map(toothView(tooth, gear.teeth[tooth])), |
@@ -82,3 +82,3 @@ import * as Rx from 'rx' | ||
let actions = gear.intent ? gear.intent(sources) : defaultIntent(sources) | ||
let state$ = (gear.model ? gear.model(actions) : defaultModel(sources)).share() | ||
let state$ = (gear.model ? gear.model(actions) : defaultModel(sources)).shareReplay(1) | ||
let views = teeth.reduce((accum, tooth) => Object.assign(accum, { | ||
@@ -85,0 +85,0 @@ [tooth]: state$.filter(toothFilter(tooth, gear.teeth[tooth])).map(toothView(tooth, gear.teeth[tooth])), |
{ | ||
"name": "cycle-gear", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Main function factory for CycleJS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47782