Skip to content

Commit

Permalink
dispatch custom event searchkitQueryChanged for external components
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Feb 8, 2021
1 parent 8608b96 commit 1e8c70b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Searchkit/Results.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import { Grid } from 'semantic-ui-react';
import { Count, Pagination, ResultsMultiLayout, Sort } from 'react-searchkit';

export class Results extends Component {
componentDidMount() {
var evt = new CustomEvent('searchkitQueryChanged', {});
window.dispatchEvent(evt);
}

render() {
console.log(
'Results Searchkit this.props.currentResultsState.data',
Expand Down

0 comments on commit 1e8c70b

Please sign in to comment.