Comparing version 2.3.1 to 2.3.2
@@ -254,4 +254,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const laggyDataRef = React.useRef(data); | ||
var _laggyDataRef_current; | ||
const returnedData = keepPreviousData ? index_js.isUndefined(cachedData) ? (_laggyDataRef_current = laggyDataRef.current) != null ? _laggyDataRef_current : data : cachedData : data; | ||
const returnedData = keepPreviousData ? index_js.isUndefined(cachedData) ? index_js.isUndefined(laggyDataRef.current) ? data : laggyDataRef.current : cachedData : data; | ||
// - Suspense mode and there's stale data for the initial render. | ||
@@ -258,0 +257,0 @@ // - Not suspense mode and there is no fallback data and `revalidateIfStale` is enabled. |
{ | ||
"name": "swr", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "React Hooks library for remote data fetching", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
263559
4995