You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
Imagine a scenario where you have 2 different queries, and those queryies take 2 different times to resolve.
A real world scenario would be having the same query which one fetches from a local storage, and one fetches from a REST api.
Those 2 queries have the same signature (userId: string) => User, and I would love to compose them so that if the first one is pending or returned an error, the result of the second one is returned.
Something along the lines of: