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

Property 'status' does not exist on type 'Query<{ status: UploadStatus; }, TRPCClientErrorLike<{ input: { fileId: string; }; output: { status: UploadStatus; }; transformer: false; errorShape: DefaultErrorShape; }>, { ...; }, any>'.ts(2339) #91

Open
Sujan1714 opened this issue Apr 8, 2024 · 3 comments

Comments

@Sujan1714
Copy link

Sujan1714 commented Apr 8, 2024

src\components\chat\ChatWrapper.tsx

image

@Sim0n18
Copy link

Sim0n18 commented Apr 8, 2024

Hey, i had the same issue.
#87 (comment)

The latest comment should work!

@Sujan1714
Copy link
Author

Sujan1714 commented Apr 10, 2024

Hey, i had the same issue. #87 (comment)

The latest comment should work

Thank you broh

@aradhyas8
Copy link

Refer to the above or another way is using query. Since you can't directly detch data now .:

  const { data, isLoading } = trpc.getFileUploadStatus.useQuery({
    fileId
  },
    {
      refetchInterval: (query) =>
        (query.state.data?.status === "SUCCESS" ||
          query.state.data?.status === "FAILED")
          ? false
          : 500
    }

  )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants