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

Add support for syncing non-node root fields when WP options are updated #209

Closed
TylerBarnes opened this issue Oct 9, 2020 · 1 comment

Comments

@TylerBarnes
Copy link
Collaborator

Currently data is only sourced when a node is saved (post, page, user, media item, etc). Each time one of these is saved it will refetch the non-node root fields (such as WP options). We need to add support for delta synching when options are updated.

@TylerBarnes TylerBarnes self-assigned this Oct 9, 2020
@TylerBarnes TylerBarnes changed the title Feat: Add support for syncing non-node root fields when WP options are updated Add support for syncing non-node root fields when WP options are updated Oct 9, 2020
@TylerBarnes
Copy link
Collaborator Author

Actually, support for this is already added in this plugin. The action type is NON_NODE_ROOT_FIELDS. The problem right now is that WPGatsby never emits this action. Follow gatsbyjs/wp-gatsby#38 for when this is supported in WPGatsby.

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

No branches or pull requests

2 participants