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: @tanstack/vue-query@5.92.3
Choose a base ref
...
head repository: TanStack/query
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @tanstack/vue-query@5.92.4
Choose a head ref
  • 4 commits
  • 95 files changed
  • 5 contributors

Commits on Dec 28, 2025

  1. fix(core): report errors of mutation callbacks asynchronously (#9675)

    * Ensure errors of mutation callbacks are reported asynchronously
    
    * Fixed accidental removal of vitests unhandledRejection handler
    
    ---------
    
    Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
    Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
    3 people authored Dec 28, 2025
    Configuration menu
    Copy the full SHA
    3ee1ae4 View commit details
    Browse the repository at this point in the history
  2. fix(core): report errors of useMutation callbacks asynchronously (#9676)

    * Ensure errors of useMutation callbacks onError and onSettled are reported asynchronously
    
    * Fixed accidental removal of vitests unhandledRejection handler
    
    * chore: size-limit
    
    ---------
    
    Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
    Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
    3 people authored Dec 28, 2025
    Configuration menu
    Copy the full SHA
    e907f89 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2025

  1. fix(query-core): ensure query refetches on mount/retry when status is…

    … error (#9728) (#9927)
    
    * fix(query-core): ensure query refetches on mount/retry when status is error (#9728)
    
    * fix: mark queries as invalidated on background errors instead of checking error status
    
    - Remove error status check in shouldFetchOn
    - Set isInvalidated: true in reducer when background error occurs (only if data exists)
    - Add tests for staleTime: 'static' and non-static queries with background errors
    
    This approach centralizes stale logic in isStale/isStaleByTime and prevents
    regression where staleTime: 'static' queries would incorrectly refetch on
    window focus after a background error.
    
    * refactor: simplify isInvalidated logic in error case
    
    Set isInvalidated: true unconditionally since queries with no data
    are always considered stale per isStaleByTime logic.
    
    * Apply suggestion from @TkDodo
    
    * Apply suggestions from code review
    
    * fix: eslint
    
    * fix: disable retry in background error tests to prevent timeout
    
    The tests were timing out because when refetch() throws an error, the
    default retry mechanism (3 retries with exponential backoff) was being
    triggered. With fake timers, the retry delays weren't being advanced,
    causing the tests to hang.
    
    Adding retry: false to both tests disables retries and allows them to
    complete immediately after the error, which is appropriate for these
    tests that specifically check background error behavior.
    
    ---------
    
    Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
    xiangnuans and TkDodo authored Dec 29, 2025
    Configuration menu
    Copy the full SHA
    fccef79 View commit details
    Browse the repository at this point in the history
  2. ci: Version Packages (#10003)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Dec 29, 2025
    Configuration menu
    Copy the full SHA
    0a1e3e0 View commit details
    Browse the repository at this point in the history
Loading