Skip to content

Commit

Permalink
search results: add callback hook on search results rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored Oct 2, 2024
1 parent baaeb19 commit 32537e9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export const RequestsResults = ({
currentResultsState,
}) => {
const { total } = currentResultsState.data;

const handleResultsRendered = () => {
window.invenio?.onSearchResultsRendered();
};
return (
total && (
<Grid>
Expand Down Expand Up @@ -55,7 +59,7 @@ export const RequestsResults = ({
</Grid.Row>
<Grid.Row>
<Grid.Column>
<ResultsList />
<ResultsList onResultsRendered={handleResultsRendered} />
</Grid.Column>
</Grid.Row>
</Grid>
Expand Down

0 comments on commit 32537e9

Please sign in to comment.