u
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
/**
|
||||
* @file articleDetailAutomat.js
|
||||
* @description SKU-keyed automats for article detail tabs: article history
|
||||
* (`articleHistoryAutomat`) and assigned suppliers (`articleSupplierAutomat`).
|
||||
*
|
||||
* Upstream Triggers:
|
||||
* - `sseAutomat`: Calls `articleHistoryAutomat.reload(sku)` and
|
||||
* `articleSupplierAutomat.reload(sku)` via `invalidateArticle(sku)` when an
|
||||
* `article-<sku>` SSE event is received.
|
||||
* - UI / Router: Triggers keyed `.load(sku)` or `.key(sku)` when viewing
|
||||
* history or supplier details of a specific article.
|
||||
*/
|
||||
|
||||
import { KeyedAutomat } from 'react-automat';
|
||||
import { article as articleApi } from '../api';
|
||||
import { requireArray, requireObject } from '../utils/apiShape';
|
||||
|
||||
Reference in New Issue
Block a user