Skip to content
On this page

useLandingSearch

Definition

Composable for landing page search.

Signature

ts
export function useLandingSearch(): {
  search: (
    navigationId: string,
    options?: {
      withCmsAssociations?: boolean;
    },
  ) => Promise<LandingPage>;
} 

Return type

ts
{
  search: (
    navigationId: string,
    options?: {
      withCmsAssociations?: boolean;
    },
  ) => Promise<LandingPage>;
}

Methods

NameTypeDescription

Usage

ts
import { useLandingSearch } from "@shopware-pwa/composables-next";

const { search } = useLandingSearch();
useLandingSearch has loaded