DEV Community

Discussion on: How to make routable modals in react with react-router

wintercounter profile image
Victor Vincent

How would you handle the case when there is no history yet and the users arrives directly to your modal URL? Because there is no background set in that case, the Switch will use the current location object, generating the wrong content.