Skip to content

Automatic Refreshing - Change Url on each request. #203

@luke-unifymonitor

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions