Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Tag nodes disappear from cache #85

Closed
maiertech opened this issue Oct 27, 2020 · 0 comments · Fixed by #87
Closed

Tag nodes disappear from cache #85

maiertech opened this issue Oct 27, 2020 · 0 comments · Fixed by #87

Comments

@maiertech
Copy link
Owner

See this issue comment: reflexjs/reflexjs#39 (comment).

Tag nodes are created in onCreateNode, which is intended to extend or transform nodes created by other plugins. This implicitly assumes that every node created has a parent node that is properly linked form the newly created node. This assumption is wrong for tag nodes. Tag nodes do not have a single parent node. Therefore, parent is not set and tag nodes get removed from cache.

See gatsbyjs/gatsby#11785 and gatsbyjs/gatsby#12981.

Try sourceNodes lifecycle method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant