Saturday, 19 December 2020

React : Handle multiple browser(s), browser tabs to restrict duplicate operations

I have a button Submit when clicked performs some operation calling an API. Post click, the button is disabled or basically the initial state of the button and the operation is changed.

I have two or multiple browser tabs which shows same screen of Submit. If in any one of the tab, the Submit operation is performed, the other tabs should show the updated version. The other tabs should show the disabled version and should not show the initial state.

How do I achieve this? I am using React, JS

enter image description here



from React : Handle multiple browser(s), browser tabs to restrict duplicate operations

No comments:

Post a Comment