-
# Khu vực học tập | Được Edu
Được chỉ cung cấp các khóa học lập trình online chất lượng, nói không với khóa lởm!
[https://edu.duthanhduoc.com/learn/ReactJs-Super?lessonId=123](https://edu.duthanhduo…
-
**Intended outcome:**
I'm using `useQuery` to query and render some data. The `loading` prop works as expected, the value is `true` and then changes to `false`. When loading is false, `data` and `err…
-
I'm wondering using variable is possible.
here is my current query key for example
```typescript
function test(a: string, b: string) {
return useQuery({
queryKey: ["key_one", a, "key_two"…
-
The hooks file has been removed from the repository, and I'm now unsure of the best approach to fetch POST or GET APIs while handling Shopify authentication.
Could you please provide guidance on the …
-
### Describe the bug
When using the @tanstack/react-query v5 library within a Turborepo monorepo structure, specifically inside a shared library, the following error is thrown:
```
Error: No Quer…
-
I'm curious your thoughts on not being able to use useQuery, useMutation, etc.. within the `onGet` method. You will receive this error if you try.
`[vite] Internal server error: Code(14): Invoking 'u…
-
We could enable usage of the hooks logic, without importing `useQuery` or `useSubscription`.
Hooks make the code messier:
```tsx
const { posts } = useQuery()
// It's ambiguous what 'posts' i…
-
I noticed that Default.Js is using
> import { useQuery } from "@daml/react";
> ...
> const assets = useQuery (Main.Asset);
This resulted in an empty list
when changing useQuery to useStream…
-
**Intended outcome:**
Polling has two general use cases:
1. We want to poll in the background to get notified of an update to some external state. We either don't need to show a loading UI at…
-
trpc.authCallback.useQuery(undefined,{
onSuccess: ({success}) => {
if (success) {
// user is synced to db
router.push(origin ? `/${origin}` : '/dashboard')
}
…