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

fix(HitsPerPage): compute selected from isRefined #5469

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Jan 31, 2023

Summary

fixes #5397

Slight improvement in the HitsPerPage + SortBy tests, as it was relying on Vue state instead of the DOM

I wanted both to be exactly the same, but SortBy doesn't have isRefined on the items apparently.

Workaround in the example to make HitsPerPage responsive to the URL is also removed.

Result

This makes HitsPerPage responsive to the URL, as expected like other widgets.

This makes it responsive to the URL, as expected like other widgets.

fixes #5397

Slight improvement in the HitsPerPage + SortBy tests, as it was relying on Vue state instead of the DOM

I wanted both to be exactly the same, but SortBy doesn't have isRefined on the items apparently.
@Haroenv Haroenv requested review from a team, FabienMotte and sarahdayan and removed request for a team January 31, 2023 13:52
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 31, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e0ebf9c:

Sandbox Source
InstantSearch.js Configuration
react-instantsearch-app Configuration
example-react-instantsearch-hooks-default-theme Configuration
example-vue-instantsearch-default-theme Configuration
vue-instantsearch-v2-starter Issue #5397

Copy link
Member

@sarahdayan sarahdayan left a comment

Choose a reason for hiding this comment

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

Nice, can't wait to make all these widget and component tests common across flavors.

@Haroenv
Copy link
Contributor Author

Haroenv commented Feb 1, 2023

Yes, I doubted to write a common test here, but I was juggling too many other things to write it just yet

@Haroenv Haroenv merged commit 7dc16f4 into master Feb 1, 2023
@Haroenv Haroenv deleted the fix/vue-hits-per-page-url branch February 1, 2023 10:48
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.

HitsPerPage doesn’t work correctly with routeToState()
2 participants