Skip to content

Reconciliation fails when using lodash/memoize #984

@baldurh

Description

@baldurh

Description

Hot reloading fails for files using lodash/memoize in 4.2.0

Removing all calls to the memoize function fixes the issue for that file.
It doesn’t make sense that this problem has anything to do with the memoize function itself but it happens to be the problematic function in this case.

It was only being used at the top level of the file.

Expected behavior

Should hot reload the file.

Actual behavior

Hits an error: reconcilation failed due to error ReferenceError: resolver is not defined

resolver is the second argument passed to memoize

Environment

React Hot Loader version: 4.2.0

Run these commands in the project folder and fill in their results:

  1. node -v: 9.5.0
  2. npm -v: 5.6.0
  3. yarn -v: 1.6.0

Then, specify:

  1. Operating system: MacOS 10.13.4
  2. Browser and version: Chrome 66.0.3359.170

Reproducible Demo

N/A

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