Skip to content
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

Zaps in UI occasionally appears to fail but soon succeeds #1655

Open
huumn opened this issue Nov 27, 2024 · 1 comment
Open

Zaps in UI occasionally appears to fail but soon succeeds #1655

huumn opened this issue Nov 27, 2024 · 1 comment

Comments

@huumn
Copy link
Member

huumn commented Nov 27, 2024

This happens to me once or twice per day in prod.

I'll zap something, the bolt will change color and the sat amount with update, then the bolt will unchange color and the sat amount will un-update. If I navigate around and come back to the item, the zap will be and appear successful.

This happens pretty fast so I suspect the cache is getting updated with the pre-zap values for some reason.

@huumn
Copy link
Member Author

huumn commented Dec 27, 2024

It looks like cache.modify takes an optimistic option which makes it update optimistic caches in addition to the "main" cache. I think that might be the fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant