Skip to content

Commit d88ba6e

Browse files
authored
docs(lit): remove '@tanstack/query-core' and 'lit' from the install commands to install only '@tanstack/lit-query' (#12209)
* docs(lit): remove '@tanstack/query-core' from the install commands since 'lit-query' already depends on it * docs(lit): remove 'lit' from the install commands since apps using Lit Query already have it
1 parent 5c5c11c commit d88ba6e

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎docs/framework/lit/installation.md‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,30 @@ title: Installation
55

66
> IMPORTANT: The Lit adapter is currently experimental and v0.1. Pin exact versions if you need extra release stability while the API is early.
77
8-
Install Lit Query with Lit and TanStack Query Core:
8+
Install Lit Query:
99

1010
```sh
11-
npm i @tanstack/lit-query @tanstack/query-core lit
11+
npm i @tanstack/lit-query
1212
```
1313

1414
or
1515

1616
```sh
17-
pnpm add @tanstack/lit-query @tanstack/query-core lit
17+
pnpm add @tanstack/lit-query
1818
```
1919

2020
or
2121

2222
```sh
23-
yarn add @tanstack/lit-query @tanstack/query-core lit
23+
yarn add @tanstack/lit-query
2424
```
2525

2626
or
2727

2828
```sh
29-
bun add @tanstack/lit-query @tanstack/query-core lit
29+
bun add @tanstack/lit-query
3030
```
3131

32-
`@tanstack/query-core` is a peer dependency of `@tanstack/lit-query`. Even though the Lit docs import user-facing APIs from `@tanstack/lit-query`, your app should install `@tanstack/query-core` explicitly.
33-
3432
## Requirements
3533

3634
Lit Query is intended for Lit 2.8 and newer, including Lit 3. It uses Lit reactive controllers and Lit context, so query consumers should be `ReactiveControllerHost` instances such as `LitElement`.

‎packages/lit-query/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ it in production while the API is early.
2525
## Install
2626

2727
```bash
28-
npm install @tanstack/lit-query @tanstack/query-core lit
28+
npm install @tanstack/lit-query
2929
```
3030

3131
For local development in this repository:

0 commit comments

Comments
 (0)