Skip to content

Commit e0d769e

Browse files
authored
update docs for useReactiveVar import (#12939)
1 parent 1d165ba commit e0d769e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)