alvis / gatsby-source-notion

A Gatsby source plugin for content management with Notion using the official API.
MIT License
56 stars 6 forks source link

Ensure that adding/updating a resource won't get others removed #2

Closed alvis closed 3 years ago

alvis commented 3 years ago

Previously, contentDigest is computed together with a node's children including its content and id. Therefore, if a child get updated, its parent node will get an unexpected updated with a new digestContent, triggering the old parent node getting removed together with its children, i.e. the updated child's siblings.

This update will address this issue by excluding the child's content but their ids into the computation of digestContent.

PR installable via

npm install alvis/gatsby-source-notion#pull/2/head

Fix #1