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: v5.87.0
Choose a base ref
...
head repository: TanStack/query
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.87.1
Choose a head ref
  • 2 commits
  • 79 files changed
  • 2 contributors

Commits on Sep 5, 2025

  1. fix(query-core): update initialData when an observer mounts while a Q…

    …uery without data exists (#9620)
    
    initialData gives the guarantee that data cannot be undefined, but this falls short when you create a Query via prefetching, and then mount the observer that has initialData set.
    
    That's because initialData is only doing something in the constructor of the Query, so if the Observer isn't the one who creates the Query, it does nothing
    
    This fix makes sure that when new options are applied on a Query (which e.g. happens when an observer mounts), initialData is taken into account when the Query doesn't have any data yet
    TkDodo authored Sep 5, 2025
    Configuration menu
    Copy the full SHA
    1c8a921 View commit details
    Browse the repository at this point in the history
  2. release: v5.87.1

    tannerlinsley committed Sep 5, 2025
    Configuration menu
    Copy the full SHA
    bc2c87f View commit details
    Browse the repository at this point in the history
Loading