Expain differences between items and allItems #283
Answered
by
carlobeltrame
manuelmeister
asked this question in
Q&A
-
|
When should I use items and when allItems? |
Beta Was this translation helpful? Give feedback.
Answered by
carlobeltrame
Jul 1, 2023
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
manuelmeister
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
allItemsincludes items which are marked asdeleting. Normally you should useitems, to benefit from the optimistic deleting behaviour (i.e. the deleted item already vanishes fromitemswhile the DELETE request is still ongoing).https://github.com/ecamp/hal-json-vuex/blob/e4d893b7427595fe907e83f993ffe911c9cb8384/src/CanHaveItems.js#L20:L21