Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: usePrefetchQuery #7582

Merged
merged 12 commits into from
Jun 25, 2024
Merged

feat: usePrefetchQuery #7582

merged 12 commits into from
Jun 25, 2024

Commits on Jun 17, 2024

  1. feat: usePrefetchQuery

    TkDodo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    2d2af3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e0b353d View commit details
    Browse the repository at this point in the history
  3. refactor: remove ensureInfiniteQueryData function

    will do in a separate PR
    TkDodo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    5bda18f View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. chore: add tests for usePrefetchQuery and usePrefetchInfiniteQuery (#…

    …7586)
    
    * chore: add tests for usePrefetchQuery and usePrefetchInfiniteQuery
    
    * chore: update tests to assert the alternative spy is not called
    
    * chore: add some new tests
    
    * chore: remove it.only whoops
    
    * chore: call mockClear after fetching
    
    * chore: improve waterfall test by asserting fallback calls instead of loading node query
    
    * chore: improve code repetition
    
    * chore: add some generics to helper functions
    brunolopesr committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    0cc8a26 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    348cc7a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6010477 View commit details
    Browse the repository at this point in the history
  4. usePrefetchQuery type tests and docs (#7592)

    * chore: add type tests and docs
    
    * chore: update hooks to use FetchQueryOptions and FetchInfiniteQueryOptions
    
    * chore: update tests
    
    * chore: update docs
    
    * chore: remove .md extension from link
    
    * chore: add unknown default value to TQueryFnData
    
    * Apply suggestions from code review
    
    ---------
    
    Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
    brunolopesr and TkDodo committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    b5ef74d View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Apply suggestions from code review

    Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>
    TkDodo and Ephem committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    661f127 View commit details
    Browse the repository at this point in the history
  2. chore: fix types in tests

    TkDodo committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    88d41a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5fee342 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. chore: add new tests (#7614)

    * chore: add new tests
    
    * Apply suggestions from code review
    
    ---------
    
    Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
    brunolopesr and TkDodo committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    fe50ffc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd7cc03 View commit details
    Browse the repository at this point in the history