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

Pagination example doesn't use useFetch #58

Open
daviesaz opened this issue Aug 11, 2022 · 1 comment
Open

Pagination example doesn't use useFetch #58

daviesaz opened this issue Aug 11, 2022 · 1 comment

Comments

@daviesaz
Copy link

The pagination example uses fetch directly rather than useFetch. Was it meant to use useFetch?

@jnadroj
Copy link

jnadroj commented Oct 12, 2022

@daviesaz fetch is used in the function that makes the request with the data that is injected through usePaginationRequest, you don't have to use useFetch, since a hook can't be used inside a code block different from the one of the component.

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

2 participants