Skip to content

code-gen(react-query): make the generated hooks compatible with @tanstack/react-query@v5 #2644

Closed
@dirkdev98

Description

@dirkdev98

https://tanstack.com/query/v5/docs/react/guides/migrating-to-v5

Seems like the only change for us is to use the object format everywhere ref

- useQuery(key, fn, options)
+ useQuery({ queryKey, queryFn, ...options })

This seems to be compatible with @tanstack/react-query@v4 so we can do this without it being a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio 1Defines the highest prio issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions