gatsbyjs / wp-gatsby

WordPress plugin for gatsby-source-wordpress
Other
167 stars 41 forks source link

Comments trigger builds #144

Closed moonmeister closed 3 years ago

moonmeister commented 3 years ago

It'd be nice if Publishing/deleting/editing comments optionally triggered builds.

Currently I have to ship extra code to fetch comments on the client side. If WP Gatsby triggered a build on CUD operations I could do so on the server and have that comment published really fast which cloud builds.

One clarification, if a comment is created but held for moderation it shouldn't trigger a build cause it's not "published/public".

jackonawalk commented 3 years ago

Hey Alex! What's new? I chatted with the team about this one, and we're not ready to commit to supporting WP comments in the Gatsby build process. We think the best approach for comments is to render them client side because otherwise build times will get longer and longer. If this gets a lot of up votes then we'll reconsider it in the future! Closing for now.