Skip to content

Unmount by react component name, not just by node #2743

@AdamKyle

Description

@AdamKyle

I have some components that are done such that:

var Example = React.createClass({
   render: function(){
    return(
      <div>
        ...
        <SomeComponentName />
     </div>
    );
  }
});

When this component is mounted is there away to say unmount the SomeComponentName? Can I do that on the fly or do I have top find the node that SomeComponentName is attached to and then unmount it via the node like the docs state.

Right now it only seems like you can unmount by node but if you could unmount by component name that would make life a lot easier in some cases where on route change you only ant to unmount specific components via their name.

Maybe I missing something?

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