API Reference / React InstantSearch Hooks / <QueryRuleContext>

About this widget

The <QueryRuleContext> widget isn’t currently available in React InstantSearch Hooks, but you can make it yourself using useQueryRules().

Refer to the useQueryRules() documentation for a full API reference.

Examples

1
2
3
4
5
6
7
import { useQueryRules } from 'react-instantsearch-hooks-web';

export function QueryRuleContext(props) {
  useQueryRules(props);

  return null;
}
Did you find this page helpful?