A little question about dva

reducers: {

    save(state) {
        return { ...state };
    },
    test(state, { payload }) {
        return { ...state, count: payload.count };
    },
    setLIst(state, { payload }) {
        return { ...state };
    },
},
effects: {
    async getList({ payload }, { call, put }) {
        const res = await articleService.getList(payload);
        let { code, data, msg } = res;
        put({ type: "setLIst", payload: data });
    },
},
put({ type: "setLIst", payload: data });setLIstaction
Jun.27,2022

found the answer. Async await is not supported in dva effects, only generator writing is supported

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-1bdfdcb-314d2.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-1bdfdcb-314d2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?