@aha-app/react-easy-state
Advanced tools
Comparing version 0.0.4-development to 0.0.5-development
@@ -248,6 +248,6 @@ 'use strict'; | ||
if (!taskPending) { | ||
console.log('Batching setState'); | ||
console.log("Batching setState ".concat(viewIndex)); | ||
taskPending = true; | ||
queueMicrotask(function () { | ||
console.log('Running setState'); | ||
console.log("Running setState ".concat(viewIndex)); | ||
var batchesToRun = batchesPending; | ||
@@ -263,3 +263,3 @@ taskPending = false; | ||
} else { | ||
console.log('Already batched setState'); | ||
console.log("Already batched setState ".concat(viewIndex)); | ||
} | ||
@@ -266,0 +266,0 @@ } |
@@ -36,6 +36,6 @@ 'use strict'; | ||
if (!taskPending) { | ||
console.log('Batching setState'); | ||
console.log(`Batching setState ${viewIndex}`); | ||
taskPending = true; | ||
queueMicrotask(() => { | ||
console.log('Running setState'); | ||
console.log(`Running setState ${viewIndex}`); | ||
const batchesToRun = batchesPending; | ||
@@ -47,3 +47,3 @@ taskPending = false; | ||
} else { | ||
console.log('Already batched setState'); | ||
console.log(`Already batched setState ${viewIndex}`); | ||
} | ||
@@ -50,0 +50,0 @@ } |
@@ -245,6 +245,6 @@ import { useState, memo, useMemo, useEffect, Component } from 'react'; | ||
if (!taskPending) { | ||
console.log('Batching setState'); | ||
console.log("Batching setState ".concat(viewIndex)); | ||
taskPending = true; | ||
queueMicrotask(function () { | ||
console.log('Running setState'); | ||
console.log("Running setState ".concat(viewIndex)); | ||
var batchesToRun = batchesPending; | ||
@@ -260,3 +260,3 @@ taskPending = false; | ||
} else { | ||
console.log('Already batched setState'); | ||
console.log("Already batched setState ".concat(viewIndex)); | ||
} | ||
@@ -263,0 +263,0 @@ } |
@@ -33,6 +33,6 @@ import { useState, memo, useMemo, useEffect, Component } from 'react'; | ||
if (!taskPending) { | ||
console.log('Batching setState'); | ||
console.log(`Batching setState ${viewIndex}`); | ||
taskPending = true; | ||
queueMicrotask(() => { | ||
console.log('Running setState'); | ||
console.log(`Running setState ${viewIndex}`); | ||
const batchesToRun = batchesPending; | ||
@@ -44,3 +44,3 @@ taskPending = false; | ||
} else { | ||
console.log('Already batched setState'); | ||
console.log(`Already batched setState ${viewIndex}`); | ||
} | ||
@@ -47,0 +47,0 @@ } |
{ | ||
"name": "@aha-app/react-easy-state", | ||
"version": "0.0.4-development", | ||
"version": "0.0.5-development", | ||
"description": "React state management with a minimal API. Made with ES6 Proxies.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs.es6.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
197219