Wondering if Gantry should set up a default structure for handling async calls.
For Example:
dispatch REQUEST_START before any axios call
Starts a spinner component
dispatch REQUEST_SUCCESS when the call is successful
Stops the Spinner
dispatch REQUEST_ERROR when the call errors
Stops Spinner
Displays Error via alert or something.
I think too often this sort of behavior isn't included right off the bat (at least in projects I've been part of), and it's standardizable enough to warrant some Gantry involvement IMO.
Wondering if Gantry should set up a default structure for handling async calls.
For Example:
REQUEST_START
before any axios callREQUEST_SUCCESS
when the call is successfulREQUEST_ERROR
when the call errorsI think too often this sort of behavior isn't included right off the bat (at least in projects I've been part of), and it's standardizable enough to warrant some Gantry involvement IMO.