Skip to content

Commit

Permalink
update test-site to run search on load (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElemelonWind committed Jul 18, 2022
1 parent 12cc69d commit ba357d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test-site/src/pages/PeoplePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function PeoplePage() {
const answersActions = useAnswersActions();
useLayoutEffect(() => {
answersActions.setVertical('people');
answersActions.executeVerticalQuery();
});

return (
Expand Down
1 change: 1 addition & 0 deletions test-site/src/pages/ProductsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function ProductsPage() {
const answersActions = useAnswersActions();
useLayoutEffect(() => {
answersActions.setVertical('products');
answersActions.executeVerticalQuery();
});

return (
Expand Down
1 change: 1 addition & 0 deletions test-site/src/pages/UniversalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default function UniversalPage(): JSX.Element {
const answersActions = useAnswersActions();
useLayoutEffect(() => {
answersActions.setUniversal();
answersActions.executeUniversalQuery();
});

return (
Expand Down

0 comments on commit ba357d1

Please sign in to comment.