-
Notifications
You must be signed in to change notification settings - Fork 516
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
Hits widget: transformData not always called when refining #1100
Comments
@timkelty Revisiting this issue so basically the hits widget works like that:
Then we do render the hits again and call transformData. So yes, if the hits list is absolutely the same between two clicks then we do not re-render it. Can I ask you what you are doing in this formatData that would require the hits to still be re-rendered? Thanks |
In this case In this example I'm doing this by changing the value of |
Ok so I fixed this issue by removing any check we had on the rendering of hits, it's too tricky to try to optimize that for now. |
Thanks, will test. |
Not yet released, test in one hour |
When using a
refinementList
(or presumably other sorts of filtering), if a hit exists before and after refinement,transformData
is NOT called the subsequent time(s).Original post: http://stackoverflow.com/questions/37924976/instantsearch-js-hits-widget-transforming-data-on-refinement?noredirect=1#comment63313526_37924976
Demo: https://jsfiddle.net/timkelty/LyuL5eze/7/
The text was updated successfully, but these errors were encountered: