in developing react projects, a store usually includes actionCreator, constant, index and reducer4 JS files.
for example, I have an index component
when I log in, I dispatch an action,. Of course, this action must be asynchronous, and I need to use redux-thunk as a middleware to do business processing in actionCreator, which is no problem. But after I finish processing in actionCreator, I send a reducer to notify store to change the data. When the store data changes, the component will be notified to update the data. This is the redux principle, and action is asynchronous. The method in the component is Synchronize
the effect I want is that when the login is successful, it will prompt a pop-up box to show that the login is successful! But action is asynchronous, and the login method in the index component has already been executed. What should I do with this effect?