UNPKG

vue-instantsearch-ssr

Version:

👀 Lightning-fast Algolia search for Vue apps

36 lines (34 loc) • 764 B
import { createSuitMixin } from '../mixins/suit'; import { createWidgetMixin } from '../mixins/widget'; import { connectQueryRules } from 'instantsearch.js/es/connectors'; export default { name: 'AisQueryRuleContext', mixins: [ createSuitMixin({ name: 'QueryRuleContext' }), createWidgetMixin({ connector: connectQueryRules, }), ], props: { trackedFilters: { type: Object, required: true, }, transformRuleContexts: { type: Function, required: false, default: undefined, }, }, computed: { widgetParams() { return { trackedFilters: this.trackedFilters, transformRuleContexts: this.transformRuleContexts, }; }, }, render() { return null; }, };