Skip to content

Commit 1441817

Browse files
committed
update docs for useReactiveVar import
1 parent 1d165ba commit 1441817

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/react/hooks/useReactiveVar.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { useSyncExternalStore } from "./useSyncExternalStore.js";
1010
* @example
1111
*
1212
* ```jsx
13-
* import { makeVar, useReactiveVar } from "@apollo/client";
13+
* import { makeVar } from "@apollo/client";
14+
* import { useReactiveVar } from "@apollo/client/react";
1415
* export const cartItemsVar = makeVar([]);
1516
*
1617
* export function Cart() {

0 commit comments

Comments
 (0)