-
The documentation for customizing the UI with the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good point, this is indeed not yet documented. I'm finding a place to document it now. In the mean time you can already look at how the example using connectInfiniteHits is changed here: #6410 (code in a clean way visible here: https://github.com/algolia/instantsearch/blob/1f0bc01b598ac9ce613d68f7dcc595f8f03b3744/examples/js/media/src/widgets/Articles.ts) The previous highlight and snippet helper never were safe as they were still passed to innerHTML. Using htm as inside InstantSearch works much better! Hope that helps! |
Beta Was this translation helpful? Give feedback.
Good point, this is indeed not yet documented. I'm finding a place to document it now. In the mean time you can already look at how the example using connectInfiniteHits is changed here: #6410 (code in a clean way visible here: https://github.com/algolia/instantsearch/blob/1f0bc01b598ac9ce613d68f7dcc595f8f03b3744/examples/js/media/src/widgets/Articles.ts)
The previous highlight and snippet helper never were safe as they were still passed to innerHTML. Using htm as inside InstantSearch works much better!
Hope that helps!