gatsbyjs / wp-gatsby

WordPress plugin for gatsby-source-wordpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

debounce build requests

nicokant opened this issue · comments

Auto rebuilding on changes is useful, but to avoid triggering a lot of requests it could also be useful to provide a button that triggers the build, or alternatively a to provide a debounce mechanism that triggers the build only at the end of a chain updates

This would great! A single post update on my wp site currently triggers 3 or 4 builds of my gatsby site. Since no one answered this issue before, I'm going to look into that an maybe do a PR later this week.

@gustavo-a - Just curious, if you had a chance to work on this?

Hey @psharma-ii,

I started using Gatsby Cloud since it debounces the build requests automatically.

Also, Github Actions added the concurency key, check this link for more info.

If you want to have this kind of feature you might want to check out these tools.

Hey @gustavo-a thanks for the reply. Actually, we do already use gatsby-cloud.