CodePudding user response:
Written in what relations is not big, the important thing is what is logic?Refresh when you want to know the status of the previous, you will need to save the state, can choose the front (localStorage, cookies... ) can also choose to back-end database... ), you can distinguish between users also can not distinguish, refresh after obtaining state, can be used to switch a system the dispatchAction show hidden, specific according to your requirements to do good,