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

Feature/typed query key #6201

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Commits on Oct 23, 2023

  1. feat: tag the queryKey returned from queryOptions so that it knows ab…

    …out types of the queryFn
    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    17886b3 View commit details
    Browse the repository at this point in the history
  2. feat: overloads for getQueryData / setQueryData

    to infer types from queryOptions
    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    1d6e0bf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c4683e View commit details
    Browse the repository at this point in the history
  4. refactor: rename

    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    e8a7b23 View commit details
    Browse the repository at this point in the history
  5. refactor(types): simplify options

    interestingly, this also solves other types issues we had 🤯
    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3744907 View commit details
    Browse the repository at this point in the history
  6. fix(types): fetchInfiniteQuery should work when getNextPageParam is p…

    …assed even if pages isn't
    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    dc85668 View commit details
    Browse the repository at this point in the history
  7. feat(types): infiniteQueryOptions

    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    9cf9961 View commit details
    Browse the repository at this point in the history
  8. test: this should work

    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    5fbe2bb View commit details
    Browse the repository at this point in the history
  9. fix(types): fix typing for setQueryData when only a value is passed

    by making sure TS doesn't infer types from there
    
    also, move from overloads to conditional return types
    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    f72e736 View commit details
    Browse the repository at this point in the history
  10. refactor: re-use Updater type

    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    179be5d View commit details
    Browse the repository at this point in the history
  11. chore: fix tests

    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    1f80eb3 View commit details
    Browse the repository at this point in the history
  12. update to Vue Style type

    robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    9e3a7e0 View commit details
    Browse the repository at this point in the history
  13. fix: tests

    TkDodo authored and robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3347a4a View commit details
    Browse the repository at this point in the history
  14. fix issues from rebase

    robin-labat committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3a95c0a View commit details
    Browse the repository at this point in the history