Jul 30, 2017 · 1 min read
Yeah this is an issue that can be a pain to work around. Though it’s not a perfect solution you could put the lightbox type modal in the root of your application and “provide” access to it via context.
This would allow you to say something like this.props.showLightbox('my message'). This is what i do to show a global alert for errors/messages/etc.
You could adapt the code used for my alerts to work with the lightbox. Just search through the project for how those components & functions are used.
