Skip to content

componentDidMount is not called for an item component #224

Open

Description

@Yasnuy

I have the code

render() {
return (<ReactList 
            itemRenderer={(index, key) => this.renderItem(index, key, nodes)}
            length={nodes.length}
            type='uniform'
          />)
}
renderItem(index, key, nodes) {
    const node = nodes[index];
    return (<MyItem key={key} keyItem={node.id} />) }

When I adding a new node to nodes it is rendered and shown in the list but componentDidMount() hasn't been called for the item. What should I do to trigger it?

Activity

  1. gerrykeys commented on May 24, 2019

    @gerrykeys

    i have the same issue

  2. gerrykeys commented on May 24, 2019

    @gerrykeys

    @Yasnuy do you have found any solution?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions