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
Unknown type after 0.8.2 update #67
Comments
Hi, I have a similar problem as @spacepolice10 For example in file ./src/atoms/quiz.ts export const quizNameAtom = atom<string>(
get => get(quizAtom).data?.data.name ?? "Go Back"
);
export const quizLengthAtom = atom<number>(
get => get(quizAtom).data?.data.questions.length ?? 0
);
export const quizAtom = atomWithQuery(get => ({
queryKey: ["quiz", get(userNameAtom), get(quizSlugAtom)],
queryFn: () =>
api.get<QuizResponse>(
`/api/v1/Quiz/${get(userNameAtom)}/${get(quizSlugAtom)}`
),
})); I get this errors
|
Thank you so much for opening this issue, it saved me tons of time debugging ❤️ ❤️ ❤️ |
#68 should fix this. There's still some inconsistency around types but this should bring it back to 0.8.1. Let me know if its still broken. |
It works now. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, thank you for the great job done over this library
I found out that after updating to any versions newer than 0.8.1, VSCode and build tools (webpack, turbopack) say that type of atomWithQuery is
unknown
. Typescript doesn't help to provide correct typings related to Tanstack Query Core for some reason and Jotai itself can't handle such atoms usingget
&set
. I tried it on Next.js 14.1.0 with jotai-tanstack-query 0.8.3. Same thing happens on anyatomWithQuery
no matter what settings are passed to inner objects. Anything I can do about that. For now I just switched back to 0.8.1. and it runs fine. Thank you for any info in advanceThe text was updated successfully, but these errors were encountered: