lexich / lexich/redux-api

Add action to postfetch function params

Open
#166 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
JavaScript
Stars
493
Forks
86
PR merge metrics
No merged PRs in 30d

Description

We already get request options in the function, but I am wanting to retry an action if the fetch fails. If we had the action in the postfetch I could just dispatch the action again.

Is there a different way to retry an action if it fails?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the postfetch function and how request options are passed through the fetch-failure flow. Review the existing action dispatch behavior before deciding whether the action belongs in postfetch or retrying should use another mechanism. Done means the retry behavior is defined and covered for failed fetches.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.