First of all, apologies for commenting on a post from over a year ago and if you're still active here, then thank you.
I am wondering how to go about implementing the scenario where state needs to be shared between the modal and component from where it's rendered. I somehow need a way to re-render the modal if a prop changes
Hello,
First of all, apologies for commenting on a post from over a year ago and if you're still active here, then thank you.
I am wondering how to go about implementing the scenario where state needs to be shared between the modal and component from where it's rendered. I somehow need a way to re-render the modal if a prop changes
This is a codesandbox of a simple example: codesandbox.io/s/unruffled-newton-...
I will keep this question updated on how I get along with trying to find a clean solution