refine
refine copied to clipboard
[FEAT] Prefetching hook that fetches server state data ( maybe based on action + resource)
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.
Hi @shahan007 we believe it could be a great improvement! Thanks for the report, we'll refine it and add it to our backlog.
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.
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.