foundation-store.store.errors
Home > @genesislcap/foundation-store > Store > errors
Store.errors property
Contains any errors the store may have, see ErrorMap.
Signature:
readonly errors: ErrorMap<EventDetailMap>;
Example 1
Errors can be looked up by event key:
${when(x => x.trades.errors.has('trade-insert-error'), html<TradeInsertErrorFeedback>`...`)}
Example 2
Errors can be bound to collectively:
<pre>${x => x.trades.errors.messages}</pre>