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

RTKQ tag invalidation #2040

Open
lucasgarfield opened this issue May 1, 2024 · 0 comments
Open

RTKQ tag invalidation #2040

lucasgarfield opened this issue May 1, 2024 · 0 comments
Labels
🪄 enhancement New feature or request

Comments

@lucasgarfield
Copy link
Collaborator

lucasgarfield commented May 1, 2024

Currently we take a "sledgehammer" approach towards tag invalidation. For instance, when a blueprint is deleted, we simply invalidate all tags: #2035

However, it could be much better. We could enhance the tagging by associating the tags with particular blueprints, for instance. We could also implement optimistic updates so that the store is updated immediately.

Inspiration:
https://redux-toolkit.js.org/rtk-query/usage/automated-refetching

@lucasgarfield lucasgarfield added the 🪄 enhancement New feature or request label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪄 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant