Skip to content

How to run a data request #3

@socker03

Description

@socker03

Hey. Good job.

I had a following problem.
I have a component when it is created by all the good called resolveData() loading data, but later when updated props userId data is not reloaded. You may want to expand the functionality? What ideas do you have about this?

@connect({
  feed: '...',
})
export default class UserWallPosts extends DataComponent {
  resolveData() {
    const { userId } = this.props
    .... getData(userId) ....
  }

  renderData(data) {}
}

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