Manage assets state with AssetsReducerState
mainThe AssetsReducerState defines the shape of the asset management state within the plugin. It tracks all asset IDs, the actual asset items by their ID, pagination details, current view (grid/list), and sorting orders.
Key properties include:
allIds: An array of all loaded asset IDs.byIds: A record mapping asset IDs toAssetItemobjects.assetTypes: The types of assets currently being managed.order: The current sorting configuration (direction,field, andtitle).view: The current browser view (e.g.,'grid').fetching: A boolean indicating if an asset fetch is in progress.lastPicked: The ID of the last asset selected/picked.