refine icon indicating copy to clipboard operation
refine copied to clipboard

[FEAT] Prefetching hook that fetches server state data ( maybe based on action + resource)

Open shahan007 opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

I think currently refine doesnt have a prefetch hook for a resource. Like if a user is hovering on a link/button or wherever the entity maybe, the developer might want to trigger prefetching based on it, however currently we dont have such hook to do so.

Describe alternatives you've considered

No response

Additional context

The goal of prefetching is to make data fetch before the user navigates to a page or attempts to load some known content. This will improve the user experience on page navigations as it will greatly cut down on the loading time due to the data being quickly available and we wont have to see the skeleton/loaders on our screen.

Describe the thing to improve

I think a simple usePrefetch hook will be great where we can pass it action and resource.

shahan007 avatar Jun 16 '23 10:06 shahan007

Hi @shahan007 we believe it could be a great improvement! Thanks for the report, we'll refine it and add it to our backlog.

BatuhanW avatar Jun 21 '23 08:06 BatuhanW

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 22 '23 13:08 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 26 '24 11:01 stale[bot]