-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changing contents of cached observable #12
Comments
Yes, you can use
. Let me know if that works for ya! |
the 40 items are an array from a api call. I now have a new item that I want to insert into this array. |
Well can you do it @ the component level. Say you have
? |
yeah, I was trying to keep it at the store level - I thought that this may be the case. At the component level won't work because the next component that makes the same api request will get the old 40 items, unless I bust the cache and re-read (Which seems a shame as I have to re-read 41 items, where I already have the 40 in memory) Thanks |
Yeah I remember that I was thinking about a third decorator called |
Closing due to inactivity. |
is it possible to change / emit new values from a cached call ?
Let's say I've loaded 40 items from an http call - and these are being displayed onscreen. Another session adds a new item - which notifies via websockets all interested clients.
How can I take this new item and insert it into the cache so my screen is updated withe the new record, without having to re-read the data from the http call ?
The text was updated successfully, but these errors were encountered: