Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pendingWhileRetrying -- tests help needed #650

Draft
wants to merge 3 commits into
base: v3
Choose a base branch
from
Draft

Conversation

BANOnotIT
Copy link
Collaborator

No description provided.

@stackblitz
Copy link

stackblitz bot commented Oct 1, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link

vercel bot commented Oct 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
reatom ✅ Ready (Inspect) Visit Preview Oct 1, 2023 10:16pm

@BANOnotIT BANOnotIT marked this pull request as draft October 1, 2023 22:16
@artalar
Copy link
Owner

artalar commented Mar 26, 2024

I was thinking about it a lot... What do you think:

const someResource = reatomResource((ctx) => fetch(`/api/list?search=${ctx.spy(searchAtom)}`))
  .pipe(withRetry({ onReject(){} })
someResource.pendingAtom.pipe(withComputed(
  (ctx, state) => state || ctx.spy(someResource.retriesAtom) > 0
))

@BANOnotIT BANOnotIT added good first issue Good for newcomers and removed tests labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants