Skip to content

TypeError: this._listener.remove is not a function #6

@moimikey

Description

@moimikey
this._listener.remove is not a function
TypeError: this._listener.remove is not a function
    at YellowBox.componentWillUnmount (http://localhost:8001/static/preview.bundle.js:42924:24)
    at unmountComponent (http://localhost:8001/static/preview.bundle.js:12022:55)
    at recollectNodeTree (http://localhost:8001/static/preview.bundle.js:11879:24)
    at unmountComponent (http://localhost:8001/static/preview.bundle.js:12033:40)
    at recollectNodeTree (http://localhost:8001/static/preview.bundle.js:11879:24)
    at unmountComponent (http://localhost:8001/static/preview.bundle.js:12033:40)
    at buildComponentFromVNode (http://localhost:8001/static/preview.bundle.js:12001:17)
    at idiff (http://localhost:8001/static/preview.bundle.js:11814:48)
    at diff (http://localhost:8001/static/preview.bundle.js:11793:19)
    at Object.render (http://localhost:8001/static/preview.bundle.js:12045:16)

I tried implementing this in react-storybook as a decorator. In react-storybook you're presented a navigable page, comprised of component examples. when you change pages, components will unmount. I got this error on unmount. Maybe it's my implementation, otherwise something related to how YellowBox unmounts.

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