Skip to content
Source
Sign inSign up
TanStack/query

refactor(query-core): remove the internal behavior query option #12705

Mergedbenjavicente(GitHub profile, opens in a new tab)merged 1 commit intoquery-v6 fromrefs/pull/12705/headmerged by TkDodo View on GitHub

🎯 Changes

After https://github.com/TanStack/query/pull/10074, options.behavior is internal and unused. Infinite query sets the behaviour with options._type = 'infinite'.

This is in preparation of the shared queryOptions in core, cleaning up args that shouldn't be abailable there.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with pnpm run test:pr, or these tests do not apply to this pull request.
  • I have followed the AI contribution policy and fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
    1. Pushed4736b01

    2. More templates

      @tanstack/angular-query

      npm i https://pkg.pr.new/@tanstack/angular-query@12705

      @tanstack/angular-query-devtools

      npm i https://pkg.pr.new/@tanstack/angular-query-devtools@12705

      @tanstack/angular-query-persist-client

      npm i https://pkg.pr.new/@tanstack/angular-query-persist-client@12705

      @tanstack/eslint-plugin-query

      npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@12705

      @tanstack/lit-query

      npm i https://pkg.pr.new/@tanstack/lit-query@12705

      @tanstack/preact-query

      npm i https://pkg.pr.new/@tanstack/preact-query@12705

      @tanstack/preact-query-devtools

      npm i https://pkg.pr.new/@tanstack/preact-query-devtools@12705

      @tanstack/preact-query-persist-client

      npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@12705

      @tanstack/query-async-storage-persister

      npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@12705

      @tanstack/query-broadcast-client-experimental

      npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@12705

      @tanstack/query-core

      npm i https://pkg.pr.new/@tanstack/query-core@12705

      @tanstack/query-devtools

      npm i https://pkg.pr.new/@tanstack/query-devtools@12705

      @tanstack/query-persist-client-core

      npm i https://pkg.pr.new/@tanstack/query-persist-client-core@12705

      @tanstack/react-query

      npm i https://pkg.pr.new/@tanstack/react-query@12705

      @tanstack/react-query-devtools

      npm i https://pkg.pr.new/@tanstack/react-query-devtools@12705

      @tanstack/react-query-next-experimental

      npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@12705

      @tanstack/react-query-persist-client

      npm i https://pkg.pr.new/@tanstack/react-query-persist-client@12705

      @tanstack/solid-query

      npm i https://pkg.pr.new/@tanstack/solid-query@12705

      @tanstack/solid-query-devtools

      npm i https://pkg.pr.new/@tanstack/solid-query-devtools@12705

      @tanstack/solid-query-persist-client

      npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@12705

      @tanstack/svelte-query

      npm i https://pkg.pr.new/@tanstack/svelte-query@12705

      @tanstack/svelte-query-devtools

      npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@12705

      @tanstack/svelte-query-persist-client

      npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@12705

      @tanstack/vue-query

      npm i https://pkg.pr.new/@tanstack/vue-query@12705

      @tanstack/vue-query-devtools

      npm i https://pkg.pr.new/@tanstack/vue-query-devtools@12705

      commit: 4736b01

    3. size-limit report 📦

      PathSize
      react full12.39 KB (-0.23% 🔽)
      react minimal8.19 KB (-0.06% 🔽)
    4. TkDodo approved these changes

    5. TkDodo merged this3318d18

    6. TkDodo closed this

Sign in to join this conversation.