Skip to content

Since updating to Immer 10.1.2 react-reverse-portal no longer works #49

@ccapndave

Description

@ccapndave

A recent version of Immer has implemented this change:

immerjs/immer#1069

Since then, my component is throwing this error when mounting InPortal:

Renderable.tsx:24 TypeError: Cannot assign to read only property 'setPortalProps' of object '#<Object>'
    at Object.assign (<anonymous>)
    at InPortal2._this.addPropsChannel (react-reverse-portal.js?v=4b696a38:114:16)
    at InPortal2.componentDidMount (react-reverse-portal.js?v=4b696a38:126:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions