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

How to display hits from different index #1314

Closed
vvo opened this issue Sep 20, 2016 · 0 comments
Closed

How to display hits from different index #1314

vvo opened this issue Sep 20, 2016 · 0 comments

Comments

@vvo
Copy link
Contributor

vvo commented Sep 20, 2016

Using react-instantsearch, how would we achieve that?

The current way to go is either:

  • provide an onStateChange function that will be able to inject the state in another <InstantSearch> (siblings)
  • create a connector for the first <InstantSearch>, forward the state to a second <InstantSearch> (nested)

In either way, even when the state is injected in another instance, you will still have to translate that state in searchParameters, otherwise no refinement will be made.

Nested dirty example: https://gist.github.com/vvo/771d86353bdc5908e6e720fb512dea29

@vvo vvo added this to the react-instantsearch first release milestone Sep 20, 2016
@vvo vvo closed this as completed Oct 21, 2016
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

1 participant