Skip to content

Commit b46e7bc

Browse files
committed
Add comment about breaking change in swr 2.0
1 parent ebff98c commit b46e7bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cache-provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export default async function createCacheProvider<Data = any, Error = any>({
104104
* Ignore swr error and isValidating values
105105
* on swr 1.0+ these are $err$ and $req$
106106
* on swr 1.2 it's $swr$
107+
* on swr 2.0.0-beta.0 this has changed: https://github.com/vercel/swr/discussions/1919
107108
*/
108109
function isFetchInfo(key: TKey, value?: TValue): value is TKeyInfo {
109110
return key.startsWith('$')

0 commit comments

Comments
 (0)