Skip to content

Dependency injection doesn't work with React-hot-loader #1148

@valerybugakov

Description

@valerybugakov

Hey, first of all thanks for a great library! Love it.
I'm using 2.0.0-beta.4 version and there's a utility function that helps filter out children of certain types:

function isComponentOfType(classType, reactElement) {
  return reactElement && reactElement.type === classType;
}

Approach described here #957 with CustomRow injection doesn't work for me in development environment, because all components are proxied by React-hot-loader and strict equality check fails. Is there another way to do it or is it possible to expose an API to change the behavior of isComponentOfType? React-hot-loader is really popular, it would be great to have react-toolbox compatible with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions