Why does each request accumulate _jv records in the store (or why doesn't status work)?
geoidesic opened this issue · comments
Noel da Costa commented
Each time a request is made I end up with an extra record under the _jv
node in the store. E.g.:
Some questions:
- I'm concerned that this might represent a memory leak?
- If I'm interested in the status and timestamp of a request, how do I know which of these records to reference?
- The docs say that the response will contain the id of the request... but I'm always only ever seeing id = 1 in the response, which is the id in my persistence layer, i.e. that returned by the back-end api. I'm not seeing a response id which correlates to these request ids.
- status as described here: https://github.com/mrichar1/jsonapi-vuex#status doesn't seem to work. It just shows as
undefined
if I do the console.log(status).
Here's what my response object looks like as returned by the _jv action as an async:
Matthew Richardson commented
The status code is designed in a way that can't be guarenteed to work with how Vuex handles action promises. It will be being rewritten, but this hasn't happened yet.
Closing this in favour of #75