-
Notifications
You must be signed in to change notification settings - Fork 79
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
Reaction Toggle not updating cache for publications #964
Comments
I have managed to hone in on the issue; the Curiously, from looking into the apollo cache, I was able to focus in on the specific condition that allows for If in |
Found the issue, for posterity sake and for feedback to core team. The issue relates to In lensConfig, I DO NOT have any
Because of This becomes an issue because when the I have temp fixed this by simply dropping |
Hey @dave4506 thank you for the detailed explanation and the temp workaround. Your feedback is very welcome, indeed this (the interoperability of some nested field arguments) is an area we are looking at as part of the coming iteration of the Lens API. This specifically might just be simplified altogether removing the need for a lens config property and making the publishedOn enough for all use cases. |
Describe the bug
Adding a reaction to a post NOT created by the signed-in user does not update the local apollo cache state, BUT updating a publication created by the signed-in user does result in a cache update.
To Reproduce
Provide with as much details as possible the call, the hook, the interaction with the Lens SDK that has been problematic for you. Links to public GH repos or working examples are really appreciated.
Feels like #854 has very similar issues to me.
Expected behaviuor
A clear and concise description of what you expected to happen.
State should update for all publications
If using the React bindings, what is the essence of your React app?
Version of the packages you are using
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: