question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HitsPerPage doesn’t work correctly with routeToState()

See original GitHub issue

Bug 🐞

What is the current behavior?

Make a sandbox with the current behavior

Sandbox example: https://codesandbox.io/embed/vueinstantsearchv2starter-8jx9i

What is the expected behavior?

The dropdown should reflect the selected option in the URL when you have selected something other than the default and then reloaded the page.

Does this happen only in specific situations?

What is the proposed solution?

Unsure!

What is the version you are using?

v2.1.0

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joshangellcommented, May 20, 2019

Aha, so if I were to have a crack at a PR for this would using SortBy as a guide be the simplest way forward?

1reaction
francoischalifourcommented, May 20, 2019

Thanks for the bug report.

The issue likely comes from the HitsPerPage component that doesn’t pre-select the current refinement, as opposed to the SortBy component.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Widget not accepting query value on search.start()
The only issue is I can't find a way to return a dynamic index object with the correct values through the routeToState() method...
Read more >
Vue instantsearch SEO friendly URL
I'm using Vue instantsearch and I want to make the URL a bit pleasing to the eyes so I followed this guide: ...
Read more >
instantsearch.js
It doesn't do the search itself,\n * nor does it contains logic about the ... {SearchParameters}\n */\n clearTags: function clearTags() {\n if (this....
Read more >
Vue instantsearch SEO friendly URL
But the problem is I couldn't get the category filter to work properly. ... The category is being picked up nicely by the...
Read more >
HitsPerPage doesn't work correctly with routeToState()
HitsPerPage doesn't work correctly with routeToState(). algolia/vue-instantsearch. Issue. Bug. What is the current behavior?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found