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 option to fetcher hooks to defer loading of resources #64

Open
Frewacom opened this issue Jun 17, 2021 · 0 comments
Open

Add option to fetcher hooks to defer loading of resources #64

Frewacom opened this issue Jun 17, 2021 · 0 comments
Labels
enhancement New feature or request feature New features hook React Hooks SDK

Comments

@Frewacom
Copy link
Member

There is currently no good way of fetching data conditionally. As soon as you use one of the fetcher hooks, the data will be instantly fetched (either via request or from cache). Sometimes you want to only load data on user input. The only way of doing this now is to move the fetcher hook to a separate component and then conditionally render it. This is quite ugly and it would be much better if it would be supported natively by the SDK.

@Frewacom Frewacom added enhancement New feature or request feature New features SDK hook React Hooks labels Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New features hook React Hooks SDK
Projects
None yet
Development

No branches or pull requests

1 participant