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

docs(react-query): recommend against using server actions in queryFn #7970

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 28, 2024

  1. docs(react-query): recommend against using server actions in queryFn

    Update the useQuery documentation to clarify that server actions should not be used in `queryFn`.
    Server actions are meant for mutations, run serially, and cannot execute in parallel, potentially
    leading to unexpected behavior. Recommend using API routes instead for data fetching.
    
    Closes TanStack#7934
    bartcheers committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    038cc43 View commit details
    Browse the repository at this point in the history