Skip to content

Automatic Refreshing - Change Url on each request. #203

Description

@luke-unifymonitor

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions