prismicio / prismic-react

React components and hooks to fetch and present Prismic content
https://prismic.io/docs/technologies/homepage-reactjs
Apache License 2.0
153 stars 40 forks source link

feat: use Slice `id` property to key Slices in `<SliceZone>` when available #162

Closed lihbr closed 1 year ago

lihbr commented 1 year ago

Types of changes

Description

Add support for Slice IDs, depends on https://github.com/prismicio/prismic-types/pull/45

Checklist:

github-actions[bot] commented 1 year ago

size-limit report 📦

Path Size
dist/index.js 5.67 KB (+0.18% 🔺)
dist/index.cjs 7.3 KB (+1.59% 🔺)
angeloashmore commented 1 year ago

Looks good 👍

I left a comment in @prismicio/types about renaming slice_id to id (see comment). If we do that, we'll need to update the property here as well.