From 8d72662c8e6d7fee095d0263750a17fee8ff3a5f Mon Sep 17 00:00:00 2001 From: Fullchee Zhang Date: Mon, 19 Feb 2024 12:06:48 -0500 Subject: [PATCH] docs: Install the right version of the react devtools --- docs/framework/react/devtools.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/framework/react/devtools.md b/docs/framework/react/devtools.md index 481be4c14f..8d3b85360c 100644 --- a/docs/framework/react/devtools.md +++ b/docs/framework/react/devtools.md @@ -13,14 +13,16 @@ When you begin your React Query journey, you'll want these devtools by your side ## Install and Import the Devtools -The devtools are a separate package that you need to install: +The devtools are a separate package that you need to install. + +The major version of all the packages must be in sync. ```bash -$ npm i @tanstack/react-query-devtools +$ npm i @tanstack/react-query-devtools@4 # or -$ pnpm add @tanstack/react-query-devtools +$ pnpm add @tanstack/react-query-devtools@4 # or -$ yarn add @tanstack/react-query-devtools +$ yarn add @tanstack/react-query-devtools@4 ``` You can import the devtools like this: