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

Add prefetch buttons below dimension sliders #1635

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented May 6, 2024

This is another experiment for #1578

I add a button below every dimension slider to prefetch the entire dimension. This lacks polish, obviously, but it shows what a user-controlled UI for prefetching entire dimensions could look like and feel like:

Peek 2024-05-06 09-23

One major limitation of our data provider architecture, currently, is that we have no way to know whether a slice has already been fetched and is available in the cache. This means we can't, for instance, reduce the debouncing delay (or switch to throttling) and disable the prefetch button when the entire dimension is already cached.

Technically, it is doable with the latest version of react-suspense-fetch (by calling store.get() and wrapping it with try/catch), but very hacky. Also, since the library is no longer maintained, I would prefer switching to another, more robust, suspense-based fetching library instead.

@axelboc axelboc marked this pull request as draft May 6, 2024 07:47
Base automatically changed from remove-deb to main May 6, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant