Skip to main content

Use this component to have a different layout based on a certain state.

Fill in the slot, and get access to the following things:

results: [
  "_rawResults",
  "hits",
  "nbHits",
  "page",
  "nbPages",
  "hitsPerPage",
  "exhaustiveNbHits",
  "exhaustiveTypo",
  "exhaustive",
  "query",
  "params",
  "index",
  "renderingContent",
  "processingTimeMS",
  "processingTimingsMS",
  "serverTimeMS",
  "disjunctiveFacets",
  "hierarchicalFacets",
  "facets",
  "_state"
]
state: [
  "facets",
  "disjunctiveFacets",
  "hierarchicalFacets",
  "facetsRefinements",
  "facetsExcludes",
  "disjunctiveFacetsRefinements",
  "numericRefinements",
  "tagRefinements",
  "hierarchicalFacetsRefinements",
  "index",
  "page",
  "hitsPerPage",
  "filters",
  "query",
  "highlightPreTag",
  "highlightPostTag"
]

Don't just take it from us!

For more recipes and content follow-us on Instagram @californiaoliveranch