How to write data to reducer by using asynchronous processing such as fetch in redux

execute this statement in the Home component to pass type to action

action

redux-thunk


this hint is clear. You need a middleware,. Our group uses redux-thunk.


.

found that thunk wrote in the wrong position for a long time, and then it didn't take effect, so it shouldn't be written on the second line!

action

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b8f8-3466e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b8f8-3466e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?