Comparing version 2.2.0-beta.4 to 2.2.0-beta.5
@@ -681,3 +681,7 @@ import React, { useEffect, useLayoutEffect, createContext, useContext, useMemo, useRef, createElement, useState, useCallback } from 'react'; | ||
if (shouldRerender && !unmountedRef.current) { | ||
rerender({}); | ||
if (IS_REACT_LEGACY) { | ||
rerender({}); | ||
} else { | ||
React.startTransition(()=>rerender({})); | ||
} | ||
} | ||
@@ -684,0 +688,0 @@ }, [ |
@@ -687,3 +687,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (shouldRerender && !unmountedRef.current) { | ||
rerender({}); | ||
if (IS_REACT_LEGACY) { | ||
rerender({}); | ||
} else { | ||
React__default.default.startTransition(()=>rerender({})); | ||
} | ||
} | ||
@@ -690,0 +694,0 @@ }, [ |
{ | ||
"name": "swr", | ||
"version": "2.2.0-beta.4", | ||
"version": "2.2.0-beta.5", | ||
"description": "React Hooks library for remote data fetching", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
262902
5883