Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TanStack/query
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.7
Choose a base ref
...
head repository: TanStack/query
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 1,909 changed files with 172,687 additions and 120,636 deletions.
57 changes: 0 additions & 57 deletions .all-contributorsrc

This file was deleted.

36 changes: 0 additions & 36 deletions .babelrc

This file was deleted.

9 changes: 0 additions & 9 deletions .browserslistrc

This file was deleted.

10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
* text=auto eol=lf
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
github: tannerlinsley
custom: https://youtube.com/tannerlinsley
github: [tannerlinsley, tkdodo]
133 changes: 133 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: '🐛 Bug report'
description: Report a reproducible bug or regression
body:
- type: markdown
attributes:
value: |
Thank you for reporting an issue :pray:.
This issue tracker is for reporting reproducible bugs or regression's found in [TanStack Query](https://github.com/TanStack/query)
If you have a question about how to achieve something and are struggling, please post a question
inside of TanStack Query's [Discussions tab](https://github.com/TanStack/query/discussions)
Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already:
- TanStack Query's [Discussions tab](https://github.com/TanStack/query/discussions)
- TanStack Query's [Open Issues](https://github.com/TanStack/query/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
- TanStack Query's [Closed Issues](https://github.com/TanStack/query/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
The more information you fill in, the better the community can help you.
- type: textarea
id: description
attributes:
label: Describe the bug
description: Provide a clear and concise description of the challenge you are running into.
validations:
required: true
- type: input
id: link
attributes:
label: Your minimal, reproducible example
description: |
Please add a link to a minimal reproduction.
Note:
- Your bug may get fixed much faster if we can run your code and it doesn't have dependencies other than React/Solid/Vue/Svelte.
- To create a shareable code example for web, you can use CodeSandbox (https://codesandbox.io/s/new) or Stackblitz (https://stackblitz.com/).
- Please make sure the example is complete and runnable - e.g. avoid localhost URLs.
- To stub out real api requests - Promise.resolve and Promise.reject are good options for easy reproduction
- Feel free to fork any of the official examples to reproduce your issue: https://tanstack.com/query/latest/docs/framework/react/examples/simple
- For React Native, you can use: https://snack.expo.dev/
- For TypeScript related issues only, a TypeScript Playground link might be sufficient: https://www.typescriptlang.org/play
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.
placeholder: |
e.g. Code Sandbox, Stackblitz, Expo Snack or TypeScript playground
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: Describe the steps we have to take to reproduce the behavior.
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: Provide a clear and concise description of what you expected to happen.
placeholder: |
As a user, I expected ___ behavior but i am seeing ___
validations:
required: true
- type: dropdown
attributes:
label: How often does this bug happen?
description: |
Following the repro steps above, how easily are you able to reproduce this bug?
options:
- Every time
- Often
- Sometimes
- Only once
- type: textarea
id: screenshots_or_videos
attributes:
label: Screenshots or Videos
description: |
If applicable, add screenshots or a video to help explain your problem.
For more information on the supported file image/file types and the file size limits, please refer
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files
placeholder: |
You can drag your video or image files inside of this editor ↓
- type: textarea
id: platform
attributes:
label: Platform
description: |
Please let us know which Operting System, Browser and Browser version you were using when the issue occurred.
placeholder: |
- OS: [e.g. macOS, Windows, Linux, iOS, Android]
- Browser: [e.g. Chrome, Safari, Firefox, React Native]
- Version: [e.g. 91.1]
validations:
required: true
- type: dropdown
id: adapter
attributes:
label: Tanstack Query adapter
description: |
Please let us know which adapter of TanStack Query you were using when the issue occurred.
options:
- react-query
- solid-query
- svelte-query
- vue-query
- angular-query
- vanilla
- type: input
id: rq-version
attributes:
label: TanStack Query version
description: |
Please let us know the exact version of TanStack Query you were using when the issue occurred. Please don't just put in "latest", as this is subject to change.
placeholder: |
e.g. v5.51.9
validations:
required: true
- type: input
id: ts-version
attributes:
label: TypeScript version
description: |
If you are using TypeScript, please let us know the exact version of TypeScript you were using when the issue occurred.
placeholder: |
e.g. v5.5.4
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Feature Requests & Questions
url: https://github.com/TanStack/query/discussions
about: Please ask and answer questions here.
- name: Community Chat
url: https://discord.gg/mQd7egN
about: A dedicated discord server hosted by Tanner Linsley
46 changes: 46 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
'package: angular-query-devtools-experimental':
- 'packages/angular-query-devtools-experimental/**/*'
'package: angular-query-experimental':
- 'packages/angular-query-experimental/**/*'
'package: eslint-plugin-query':
- 'packages/eslint-plugin-query/**/*'
'package: query-async-storage-persister':
- 'packages/query-async-storage-persister/**/*'
'package: query-broadcast-client-experimental':
- 'packages/query-broadcast-client-experimental/**/*'
'package: query-codemods':
- 'packages/query-codemods/**/*'
'package: query-core':
- 'packages/query-core/**/*'
'package: query-devtools':
- 'packages/query-devtools/**/*'
'package: query-persist-client-core':
- 'packages/query-persist-client-core/**/*'
'package: query-sync-storage-persister':
- 'packages/query-sync-storage-persister/**/*'
'package: react-query':
- 'packages/react-query/**/*'
'package: react-query-devtools':
- 'packages/react-query-devtools/**/*'
'package: react-query-next-experimental':
- 'packages/react-query-next-experimental/**/*'
'package: react-query-persist-client':
- 'packages/react-query-persist-client/**/*'
'package: solid-query':
- 'packages/solid-query/**/*'
'package: solid-query-devtools':
- 'packages/solid-query-devtools/**/*'
'package: solid-query-persist-client':
- 'packages/solid-query-persist-client/**/*'
'package: svelte-query':
- 'packages/svelte-query/**/*'
'package: svelte-query-devtools':
- 'packages/svelte-query-devtools/**/*'
'package: svelte-query-persist-client':
- 'packages/svelte-query-persist-client/**/*'
'package: vue-query':
- 'packages/vue-query/**/*'
'package: vue-query-devtools':
- 'packages/vue-query-devtools/**/*'
'documentation':
- 'docs/**/*'
43 changes: 43 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"configMigration": true,
"extends": [
"config:recommended",
"group:allNonMajor",
"schedule:weekly",
":approveMajorUpdates",
":automergeMinor",
":disablePeerDependencies",
":maintainLockFilesMonthly",
":semanticCommits",
":semanticCommitTypeAll(chore)"
],
"ignorePresets": [":ignoreModulesAndTests"],
"labels": ["dependencies"],
"rangeStrategy": "bump",
"postUpdateOptions": ["pnpmDedupe"],
"ignoreDeps": [
"@types/node",
"@types/react",
"@types/react-dom",
"eslint-plugin-react-compiler",
"node",
"react",
"react-dom",
"tsup",
"typescript",
"typescript50",
"typescript51",
"typescript52",
"typescript53",
"typescript54",
"typescript55",
"typescript56",
"typescript57",
"vue",
"vue-tsc",
"vue2",
"vue2.7",
"webpack"
]
}
29 changes: 29 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [main, alpha, beta, rc, v4]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
autofix:
name: autofix
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Fix formatting
run: pnpm prettier:write
- name: Apply fixes
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
with:
commit-message: 'ci: apply automated fixes'
Loading