Displaying facets with no matches should be built-in in the APIs

I tried implementing “Displaying facets with no matches” today:

First, it’ great that Algolia provides with work arounds such as this one but this has got to be one of the most buggy/weird experiences I’ve ever experienced. I don’t feel like detailing everything so I’m just going to skip it and go straight to the feedback:

Build this into your APIs. Don’t force us to write hacky, unintuitive, complex code like this.

API suggestion - keeping it super simple:

<RefinementList displayFacetsWithNoMatches={true} />

Globally - I don’t know if this makes any sense or not but you get the picture:

<InstantSearch displayFacetsWithNoMatches={true} />