effector / effector/farfetched
result of a failed query wrapped in `createQueryResource` throws every time
Open
scope:solid
type:documentation
- Dominant language
- TypeScript
- Stars
- 221
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
Repro here: https://stackblitz.com/edit/solidjs-templates-uvjenp?file=src/App.tsx
I would expect that a failed query result should be `null` or `undefined`, but instead it re-throws the inner error, regardless whether it's a contract error, or a network error...
The type contract suggests an object with `{ state, error, latest, ...}` on it, but it doesn't return such object, it simply throws.
Contributor guide
Assessment
This issue has not been assessed yet.