Comparing version 1.6.0 to 1.6.1
@@ -0,1 +1,6 @@ | ||
### 1.6.1 | ||
* **[async] [bugfix]** fixed problem with multiple beckoned actions infinite looping for same arguments | ||
* Allow for passing a non-object as an argument to an async action (`string` / `boolean` etc.) | ||
## 1.6.0 | ||
@@ -2,0 +7,0 @@ |
@@ -324,2 +324,5 @@ import React,{useState,useRef,useEffect,useContext,useMemo}from'react';import produce$1 from'immer';const isEqual = require("fast-deep-equal"); | ||
} | ||
if (typeof json !== "object") { | ||
return `${json}`; | ||
} | ||
let prefix = "{"; | ||
@@ -435,4 +438,4 @@ for (const key of Object.keys(json).sort()) { | ||
} | ||
let currentActionOrd = actionOrdUpdate(cache, key); | ||
if (!cache.actions.hasOwnProperty(key)) { | ||
const currentActionOrd = actionOrdUpdate(cache, key); | ||
if (initiate) { | ||
@@ -439,0 +442,0 @@ if (shortCircuitHook !== undefined) { |
@@ -323,2 +323,5 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});function _interopDefault(e){return(e&&(typeof e==='object')&&'default'in e)?e['default']:e}var React=require('react'),React__default=_interopDefault(React),produce$1=_interopDefault(require('immer'));const isEqual = require("fast-deep-equal"); | ||
} | ||
if (typeof json !== "object") { | ||
return `${json}`; | ||
} | ||
let prefix = "{"; | ||
@@ -434,4 +437,4 @@ for (const key of Object.keys(json).sort()) { | ||
} | ||
let currentActionOrd = actionOrdUpdate(cache, key); | ||
if (!cache.actions.hasOwnProperty(key)) { | ||
const currentActionOrd = actionOrdUpdate(cache, key); | ||
if (initiate) { | ||
@@ -438,0 +441,0 @@ if (shortCircuitHook !== undefined) { |
{ | ||
"name": "pullstate", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Simple state stores using immer and React hooks", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
112510
2187