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

Use React-Query for the AvResourceSelect components #1118

Open
bjnewman opened this issue Jul 7, 2022 · 0 comments
Open

Use React-Query for the AvResourceSelect components #1118

bjnewman opened this issue Jul 7, 2022 · 0 comments

Comments

@bjnewman
Copy link
Contributor

bjnewman commented Jul 7, 2022

🚀 Feature request

Current Behavior

Currently the AvResourceSelect components use axios based data-fetching functions and a decent amount of manual logic to control when and how this occurs.

Desired Behavior

These components should utilize react-query to take advantage of it's built-in caching capabilities among other features.

Suggested Solution

Specifically i want to be able to pre-cache the response data for an AvResourceSelect component. Consider this common use case: we have already fetched user organizations on a previous page and when we go to a new form and render an AvOrganizationSelect we are forced to re-fetch this data.

Who does this impact? Who is this for?

All users and platform maintainers benefit from reducing unnecessary api calls

Describe alternatives you've considered

There are lots of other http caching solutions but react-query is commonly used in other Availity components so for consistency this seems the obvious choice to me.

Additional context

None at the moment. If this work is assigned internally will update this ticket with progress.

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

No branches or pull requests

1 participant