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

My Museum Tour search pagination #48

Merged
merged 22 commits into from
Sep 26, 2024
Merged

Conversation

zachgarwood
Copy link
Member

No description provided.

paginationSelector,
paginationSetter,
fetchingSetter,
errorSetter,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure why these setters need to be passed in when they are also created above via useState:

const [pagination, setPagination] = useState(null);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the original reason was for implementing useFetch this way, but it was interfering with testing, so I made useFetch retrieve state directly from the SearchContext.

@zachgarwood zachgarwood force-pushed the feature/paginate-search-results branch from 580364b to f364ff6 Compare September 24, 2024 16:04
@zachgarwood zachgarwood marked this pull request as ready for review September 25, 2024 23:05
@zachgarwood zachgarwood changed the title WIP - My Museum Tour search pagination My Museum Tour search pagination Sep 25, 2024
Copy link
Member

@web-dev-trev web-dev-trev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zachgarwood zachgarwood merged commit be110ee into main Sep 26, 2024
1 check passed
@zachgarwood zachgarwood deleted the feature/paginate-search-results branch September 26, 2024 16:37
@zachgarwood zachgarwood restored the feature/paginate-search-results branch September 26, 2024 16:38
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

Successfully merging this pull request may close these issues.

2 participants