Skip to content

Add refreshInterval option to identity requests #179

Open

Description

@ipanasenko

Hi.

As I understand, there is no way to do this right now. Is it possible to add this feature?
I think it would give more flexibility, especially paired with #177

const fetchUser = id => fetch(`/users/${id}`);

connect(props => ({
  user: {
    value: () => fetchUser(props.match.params.id),
    refreshInterval: 60000
  }
}))(Profile);

In this example, function provided to value should be called every minute.

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions