Get data from other custom types in a slice

OK, so there are a few different things.

  1. So you can't fetch data in Next.js with getStaticProps on the component level.
  2. You need to use GraphQuery on your home page query so that you can get all the data there and pass the data down as props to your Slice:
const page = await client.getByUID("page", "home", { lang: locale, graphQuery: ` ... ` });

Although you will need to specify all the content and Slices in your page Custom Type in the GraphQuery.

Does make sense?