Standardize API call handling in frontend

Description

We use redux api middleware so the typical actions are xxx_REQUEST, xxx_SUCCESS and xxx_FAILURE. At the moment we don't have a generic way of handling REQUEST and FAILURE. All the reducers are either ignoring these two or putting it in a particular state and handle it specifically. We might define a middleware to handle these two generically.

See https://github.com/zanata/sync/blob/master/frontend/src/main/web/lib/middleware/apiCallStateChecker.js for example.

Assignee

Unassigned

Reporter

Patrick Huang

Labels

Tested Version/s

None

Components

Priority

unspecified
Configure