Skip to content

Warning: key is not a prop #177

@groupsky

Description

@groupsky

After upgrading I get the warning from react about using a special prop:

      Warning: InfiniteScroll: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)

Introduced in #88, but it is always undefined. The reason the list is refreshed, is because the parent component will recreate the InfiniteScroll on change of key.

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