Handle admin-menu error via action dispatch in data layer #45585
Labels
[Feature] Calypso & wp-admin Navigation
All navigation in Calypso and wp-admin, and the unified transitions between the two.
[Type] Task
Sub Issue of #45435
Currently we not handling any errors in the
admin-menu
data layerwp-calypso/client/state/data-layer/wpcom/sites/admin-menu/index.js
Lines 24 to 26 in 040142a
We need to to decide on the UX if the API encounters an error. How do we handle this? Fallback nav items? Show error message?
More specific tasks include:
action
which updatesadmin-menu
state to record theADMIN_MENU_REQUEST_ERROR
state.adminMenu
state to be combined reducers forui
anditems
so that we can have a flag for the current state of the fetch for menu items (eg: dispatched, success, failed).The text was updated successfully, but these errors were encountered: