deep-foundation / deep-foundation/deeplinks
`useDeepSubscription` is returning empty `out` and `in`
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
```tsx
const { data, loading, error } = useDeepSubscription({
type: { in: { string: { value: { _eq: "SyncTextFile" } } } },
},
{
returning: `
id
in {
id
}
`
}
)
useEffect(() => {
console.log({data, loading, error})
}, [data, loading, error])
```
We will get objects with empty in array
If we will use the same query by using `deep.select` we will get not empty in arrays
```ts
await deep.select({
type: { in: { string: { value: { _eq: "SyncTextFile" } } } },
},
{
returning: `
id
in {
id
}
`
}
)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the useDeepSubscription entry point and reproduce the query shown in the issue, logging data, loading, and error. Compare its returned in arrays with the equivalent deep.select call using the same filter and returning fields. Done means the subscription returns populated in and out arrays consistently with deep.select.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100