diff --git a/examples/react/nextjs-swr/package.json b/examples/react/nextjs-swr/package.json index dfb32164306..bbc30c52271 100644 --- a/examples/react/nextjs-swr/package.json +++ b/examples/react/nextjs-swr/package.json @@ -16,7 +16,7 @@ "next": "^13.3.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "swr": "^1.3.0" + "swr": "^2.0.0" }, "devDependencies": { "@graphql-codegen/cli": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index d19adc103e6..fe7da797077 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14475,10 +14475,12 @@ swap-case@^2.0.2: dependencies: tslib "^2.0.3" -swr@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/swr/-/swr-1.3.0.tgz#c6531866a35b4db37b38b72c45a63171faf9f4e8" - integrity sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw== +swr@^2.0.0: + version "2.1.5" + resolved "https://registry.yarnpkg.com/swr/-/swr-2.1.5.tgz#688effa719c03f6d35c66decbb0f8e79c7190399" + integrity sha512-/OhfZMcEpuz77KavXST5q6XE9nrOBOVcBLWjMT+oAE/kQHyE3PASrevXCtQDZ8aamntOfFkbVJp7Il9tNBQWrw== + dependencies: + use-sync-external-store "^1.2.0" symbol-observable@^4.0.0: version "4.0.0"