effector / effector/farfetched

result of a failed query wrapped in `createQueryResource` throws every time

Open
#294 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.