u
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -64,7 +64,20 @@ export {
|
||||
buildArticleIndex,
|
||||
selectArticleIndexItems,
|
||||
} from './articleIndexAutomat';
|
||||
export { default as deliveryAutomat } from './deliveryAutomat';
|
||||
export {
|
||||
default as deliveryAutomat,
|
||||
CHUNK_SIZE as DELIVERY_CHUNK_SIZE,
|
||||
MAX_LRU_CHUNKS as DELIVERY_MAX_LRU_CHUNKS,
|
||||
selectDeliveries,
|
||||
selectDeliveryTotal,
|
||||
selectDeliveryUnfilteredTotal,
|
||||
selectDeliveryPagination,
|
||||
selectOnlyUnbooked,
|
||||
isDeliveryBooked,
|
||||
getDeliveryUnbookedCount,
|
||||
getChunkStats as getDeliveryChunkStats,
|
||||
subscribeChunkStats as subscribeDeliveryChunkStats,
|
||||
} from './deliveryAutomat';
|
||||
export { default as quoteAutomat } from './quoteAutomat';
|
||||
export {
|
||||
default as orderAutomat,
|
||||
|
||||
@@ -32,6 +32,7 @@ import warehouseAutomat from './warehouseAutomat';
|
||||
import attributeAutomat from './attributeAutomat';
|
||||
import propertyAutomat from './propertyAutomat';
|
||||
import supplierAutomat from './supplierAutomat';
|
||||
import deliveryAutomat from './deliveryAutomat';
|
||||
import orderAutomat from './orderAutomat';
|
||||
import quoteAutomat from './quoteAutomat';
|
||||
import shipmentAutomat from './shipmentAutomat';
|
||||
@@ -264,6 +265,12 @@ function connect() {
|
||||
});
|
||||
});
|
||||
|
||||
addTrackedListener(es, 'delivery', () => {
|
||||
void deliveryAutomat.actions.reload().catch((err) => {
|
||||
console.error('[sse] delivery refresh failed', err);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user