Skip to content

V4 Modals #4584

@ghost

Description

Are we able to create the modals like in previous version of React Router? If I understand, now we can't use this.props.children. So how we can show the previous content when modal appears?

pinterest example in previous version

componentWillReceiveProps (nextProps) {
    if ((
      /* Something */
    )) {
      this.previousChildren = this.props.children
    }
  }

My stackoverflow question: http://stackoverflow.com/questions/42409175/react-router-v4-modal

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