Skip to content

Question: Is the null return type necessary in usePreloadedAuthQuery? #243

@pavelgar

Description

@pavelgar

Hi!

The documentation states that the usePreloadedAuthQuery function is a drop-in replacement for usePreloadedQuery. However, the return signature of usePreloadedAuthQuery is following:

): Query["_returnType"] | null => {

while the usePreloadedQuery doesn't have the added null return:

https://github.com/get-convex/convex-backend/blob/fcef824ddb49c81f92803d01e8859dd2fad4b7b9/npm-packages/convex/src/react/hydration.tsx#L35

Is this intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions