KEMBAR78
Unexpected data mutation in plugins · Issue #19876 · gatsbyjs/gatsby · GitHub
Skip to content

Unexpected data mutation in plugins #19876

@vladar

Description

@vladar

Gatsby version 2.18.0 revealed problems in several plugins which mutate data after createNode call. When they do so - mutated fields are not registered by gatsby internal data tracking and are not added to the GraphQL schema.

After gatsby 2.18.5 things work closer to how they did in 2.17.x so those issues are hidden again. But they still exist and must be addressed in every affected plugin. Otherwise, various new features including incremental builds may break.

We should do an audit for data-mutation patterns in plugins, address them (for gatsby own plugins), and help authors of community plugins to fix them too. We should also ensure we don't encourage data mutation practice in our docs.

The list of plugins which are probably affected:

Metadata

Metadata

Assignees

Labels

help wantedIssue with a clear description that the community can help with.topic: GraphQLRelated to Gatsby's GraphQL layer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions