react-refetch icon indicating copy to clipboard operation
react-refetch copied to clipboard

A simple, declarative, and composable way to fetch data for React components

Results 54 react-refetch issues
Sort by recently updated
recently updated
newest added

Is it possible to override the default behavior on failure of a fetch method with refreshInterval? I wish to have a state where receiving a failure is a non terminating...

Typo in the "options" method on connect

Hi, I tried to compile the following example in `4.0.0-0` in TypeScript, which is in README, but I couldn't compile it. ```typescript import { connect, PromiseState } from "react-refetch"; interface...

Would be really cool if the classical react-refetch API could be extrapolated into the React Hooks style syntax. Here's what I've cooked up so far: https://codesandbox.io/s/52j3760v4n Basically you'd need to...

While injecting props to the wrapped component, prioritize props that come from the HOC state over props that are passed from the parent. Not sure if this is a bug,...

Does it make any sense to have `this.state.data` available in those handlers? In my case, it's relevant for implementing an infinite scroller, where each fetch **adds** to the previous data...

Hello! Thanks to those who contributed the TypeScript definitions, they're very useful. I did run into what looks like a problem with the `PromiseStateMapping` and `FunctionMapping` [definitions](https://github.com/heroku/react-refetch/blob/7951bbf0e87cb1b71a91e89c69c5da0f3603028f/src/index.d.ts#L77). They look like:...

Is there a way to abort a request that was started by refetch? We build a search component that queries "live" when the user enters characters. Is there a way...

Hi, What I want to do is pretty simple and I thought it would be supported but I can't find such an option so far. I have an input text...

I'm using "then" to transform the response. When combined with a refreshInterval it causes multiple requests if the props change. Example in this code sandbox.... https://codesandbox.io/s/xrzrp27w4q Click "Foo 1" and...

bug