About FSA-Flux Standard Action

I happened to see the FSA standard and began to reflect on my design of the action structure in redux

there is a bit of confusion about the description of error types in FSA

according to the FSA standard, if an action triggers Error, then its structure should be

// reducer

switch(action.type) {
    case "add-list":
        /*
        
        payloadError
        errorpayloadnew Error
        git
        An FSA that represents an error, analogous to a rejected Promise
        promisereducerstatepromise
        */ 
}

I would also like to ask you to advise whether there are any actual handling cases or best practices-sharp-sharp-sharp problem description for this FSA-compliant action, with error reporting Error.

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Oct.11,2021
Menu