Skip to content

Receiving 'Invalid hook call' when using connect and react-redux 7.0.3  #1303

@scottyj503

Description

@scottyj503

There appears to be an error (Invalid hook call) if I use react-redux version 7.0.3 in conjunction with using the connect object.

If I use version 6.0.1 I don't receive the same error and works as expected.

Expected behavior: No errors.

Steps to reproduce:

https://github.com/scottyj503/react-redux-error

This is a test project that I created just for this example. If you clone, npm install and run you will see the specific error.

If you remove react-redux and add version 6.0.1 the code works as expected.

As a workaround I have downgraded to version 6.0.1.

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