supasate/connected-react-router

Gallery Component React Router Exemple

vinycs1 opened this issue · 0 comments

How can I implement a component like Modal Gallery.
I tried to follow this guide, and apply this logic on my case. But i noted in react-router exemple, the Gallery Component didn't unmount when modal open, and its possible go back to gallery after close modal without a re-render.

In my case, when I open modal, my previus component trigger unmount, and when i go back, my component render again, i need avoid this behavior because in my case, i dont want fetch data again.

I really appreciated any help