I am using react-popup. I have problem when I want to access update state value it not working . Mean, it not rendering UI if state is changed . When I closed pop up form then I clicked again then UI was reflected . I want if state is changed then I want to re-render UI Immediately , I don't want to form closed and re-open for new changes.
As you see I am trying to access this.state.isCustomer udpate value on base of update value I want to set some condition but I am not able to achieve my goal could someone please help me how to solve this problem .
I am using react-popup. I have problem when I want to access update state value it not working . Mean, it not rendering UI if state is changed . When I closed pop up form then I clicked again then UI was reflected . I want if state is changed then I want to re-render UI Immediately , I don't want to form closed and re-open for new changes.
`
As you see I am trying to access this.state.isCustomer udpate value on base of update value I want to set some condition but I am not able to achieve my goal could someone please help me how to solve this problem .
Thanks