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

Cache array selections #1757

Open
vicary opened this issue May 4, 2024 · 0 comments
Open

Cache array selections #1757

vicary opened this issue May 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vicary
Copy link
Member

vicary commented May 4, 2024

When empty arrays are returned from the fetch endpoint, GQty has no way to acquire user selections until the cached value is invalidated.

Currently GQty client returns the proxy array to acquire selections, but it sometimes confuses users.

GQty should instead cache and reuse the last selection subtree below that array.

This covers an occasional occurring issue where useQuery().$refetch() is fetching less than the original one.

@vicary vicary added the enhancement New feature or request label May 4, 2024
@vicary vicary mentioned this issue May 16, 2024
16 tasks
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