Beginner redux, if the new state is the same as the existing state, the new state, will not be added.

use redux

case "BEGIN_TO_LOGIN": {
            let cartState = {
                ...state,
                userInformation: [...state.userInformation, action.payload]
            }

beginner redux, if the new state is the same as the existing state, it will not add a new state, to judge how to write

Apr.11,2021

take a look at the example of immer

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