-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Get response headers in onCacheEntryAdded? #1080
Comments
Unfortunately, it didn't make it into this beta. It's on the roadmap, which is why the response value of |
Thanks for the quick response! The problem is that the meta argument in onSuccess is now typed as undefined, so with the beta even my original solution seems to be broken. Is it maybe possible to at least recover the meta there the way it worked in alpha? |
Unfortunately not, since |
That's amazing! Sure, no rush though, the alpha is stable enough and works pretty well with the custom streaming update implementation, I just wanted to make sure I will eventually be able to use the official callbacks. Thanks again! |
Should be resolved by #1084 . |
Hi,
Thanking muchly for this great lib.
I've done some custom implementation of streaming updates in alpha.2, using onSuccess. In my api response I advertise the subscribe url in a http link header, and I have used the meta.response there to get it.
Now I was excited to see first class support for streaming updates but I can see that the meta argument is unavailable in onCacheEntryAdded. Is there any way we could provide it in the callback, or can you recommend a replacement for this behaviour?
TIA
The text was updated successfully, but these errors were encountered: