reshow
Advanced tools
Comparing version 0.16.1 to 0.16.2
@@ -30,14 +30,8 @@ "use strict"; | ||
var calculateState = function calculateState(prevState, props, options) { | ||
var _getStore = (0, _reshowFlux.getStore)({ | ||
props: props, | ||
options: options | ||
}), | ||
store = _getStore.store, | ||
allProps = _getStore.allProps; | ||
var calculateState = function calculateState(prevState, options) { | ||
var path = options.realTimePath, | ||
url = options.realTimeUrl, | ||
realTimeReset = options.realTimeReset, | ||
store = options.store; | ||
var realTimeState = store.getState(); | ||
var path = allProps.realTimePath, | ||
url = allProps.realTimeUrl, | ||
realTimeReset = allProps.realTimeReset; | ||
var data = (0, _getObjectValue["default"])(realTimeState, path); | ||
@@ -44,0 +38,0 @@ var wsUrl = (0, _getObjectValue["default"])(realTimeState, [REAL_TIME_URL]); |
import _objectSpread from "reshow-runtime/es/helpers/objectSpread2"; | ||
import React from "react"; | ||
import get from "get-object-value"; | ||
import { useConnect, getStore } from "reshow-flux"; | ||
import { useConnect } from "reshow-flux"; | ||
import { build } from "react-atomic-molecule"; | ||
@@ -13,14 +13,8 @@ import { getReturn } from "reshow-return"; | ||
var calculateState = function calculateState(prevState, props, options) { | ||
var _getStore = getStore({ | ||
props: props, | ||
options: options | ||
}), | ||
store = _getStore.store, | ||
allProps = _getStore.allProps; | ||
var calculateState = function calculateState(prevState, options) { | ||
var path = options.realTimePath, | ||
url = options.realTimeUrl, | ||
realTimeReset = options.realTimeReset, | ||
store = options.store; | ||
var realTimeState = store.getState(); | ||
var path = allProps.realTimePath, | ||
url = allProps.realTimeUrl, | ||
realTimeReset = allProps.realTimeReset; | ||
var data = get(realTimeState, path); | ||
@@ -27,0 +21,0 @@ var wsUrl = get(realTimeState, [REAL_TIME_URL]); |
{ | ||
"name": "reshow", | ||
"version": "0.16.1", | ||
"version": "0.16.2", | ||
"description": "A simplified React cross-component state management.", | ||
@@ -5,0 +5,0 @@ "main": "./build/cjs/src/index.js", |
100918
2815