-
After lots of debugging headaches https://github.com/SvelteStack/svelte-query/discussions/87 we discovered that we weren't using `useQuery` correctly when passing in reactive values.
We searched …
pzcfg updated
11 months ago
-
### 문제 상황 및 원인
* useQuery는 조건문 함수 등에 선언 할 수 없다. useHook조건으로 최상위에 호출해야 한다.
* 이번에는 검색 결과에 대해 캐시 데이터 관리가 필요한 상황이라 판단하여 useQuery를 사용할 예정
### 해결 방법 1 (반 성공)
refetch , useState를 이용한 코드
```js
const…
-
```js
export const TripListView: React.FC = () => {
const [statusIndex, setStatusIndex] = useState(0);
const status = getStatusByIndex(statusIndex);
// When status changes, it'll throw an …
-
Started fiddeling with this package and it looks really awsome. I am trying to understand how to automatically refetch when variables changes in a useQuery hook. I don't know if i misunderstood someth…
-
**Intended outcome:**
I would expect the `onCompleted` callback to be fired after every poll.
**Actual outcome:**
`onCompleted` is being fired only once. First time the query is made.
**Ho…
-
This is the master issue for the work on search.
- [ ] https://github.com/twentyhq/twenty/issues/6845
- [ ] Extend search to all objects with a standard configuration (hardcoded if needed for sta…
-
Hello,
TLDR; how can I enable SSR caching with Apollo combined with NuxtHub?
First of all, I want to say that I’m relatively new to caching and I’m currently trying to optimize the performance o…
-
Apollo Client currently uses [@wry/equality](https://github.com/benjamn/wryware/blob/main/packages/equality/src/index.ts#L8) to determine whether `variables` has changed between invocations of `useQue…
-
**Is your feature request related to a problem? Please describe.**
In v5, `useQuery()` has a second parameter for the `queryClient`. It's not exposed in the generated hooks.
**Describe the solut…
-
You can mark a query as optional by doing this:
```js
useQuery(query, {skip: true});
```
However the query is still parsed and validated. I have a situation where a React component receive…