heroku / heroku/react-refetch

Automatic Refreshing - Change Url on each request.

Open
#203 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
3.4k
Forks
137
PR merge metrics
No merged PRs in 30d

Description

Hi,

First, great library - thanks.

I'm using Automatic Refreshing and would like to update the url before the request is made.

Would it be possible to have the url returned as a function? For example....

```
connect(({ refreshInterval }) => {
return {
dataFetch: {
url: (props) => { return `http://foo.com/${new Date().getTime()}` },
refreshInterval: refreshInterval
}
}
})
```

...or should I be attempting this some other way.

Many thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.