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

fix(core): make sure infiniteQuery always fetches the first page #8051

Merged
merged 1 commit into from
Sep 12, 2024

Commits on Sep 12, 2024

  1. fix(core): make sure infiniteQuery always fetches the first page

    The pageParam == null bailout is meant for fetching further pages, where users can return null/undefined from getNextPageParam to stop fetching; However, after the latest refactoring, we also did this for the initial fetch. This stops fetching from working at all if the initialPageParam was set to null/undefined, which I didn't think anyone would do, but here we are.
    TkDodo committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    d08389f View commit details
    Browse the repository at this point in the history