Closed angeloashmore closed 2 years ago
This PR adds support for Prismic's GraphQL API when using <SliceZone>.
<SliceZone>
The GraphQL API returns Slices with the following shape:
{ "type": "foo", "label": "bar", "primary": {}, "items": [] }
The Rest API returns Slices with the following shape:
{ "slice_type": "foo", "slice_label": "bar", "primary": {}, "items": [] }
To support the GraphQL API, <SliceZone> can now read a Slice's slice_type or type property to determine which component to render.
slice_type
type
🐙
Types of changes
Description
This PR adds support for Prismic's GraphQL API when using
<SliceZone>
.The GraphQL API returns Slices with the following shape:
The Rest API returns Slices with the following shape:
To support the GraphQL API,
<SliceZone>
can now read a Slice'sslice_type
ortype
property to determine which component to render.Checklist:
🐙