-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling __refresh while refreshing #20576
Comments
This is interesting. I suppose the correct fix here would be to @pieh Thoughts on this? |
Yes! Let's implement queue for that! There also other places I wanted simple queue like that (particularly our redux state persistence which is now just debounced) |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
@pieh Hey I'm wondering if there has been any progress on this issue? |
There wasn't any progress yet on this, but it's up for the taking. The code for refresh endpoint is in gatsby/packages/gatsby/src/commands/develop.ts Lines 199 to 230 in c3eccce
What we need is to make sure that calling |
Even a simple "reject" would be better that the current behavior... |
Still a problem ... and it keeps falling on our team's feet. I'm honestly a bit disappointed why there is no solution to this problem after two years. Also no response to a two year old merge request. I would really like to know why a bug of a core feature of Gatsby is treated this way. |
I am interested to fix this ? |
what is the current state of this issue is their any change or not. |
Hi! I'm closing this as a stale issue as in the meantime Gatsby 5 and related packages were released. You can check our Framework Version Support Page to see which versions currently receive active support. If this is a feature request, please create a discussion as we moved feature requests from issues to GitHub Discussions. Please try the mentioned issue on the latest version (using the Thanks! |
Description
Our team is leveraging the Gatsby refresh endpoint (
ENABLE_GATSBY_REFRESH_ENDPOINT
) for development purposes. The amount of time to build/refresh has increased over time. We are wanting to use a service that will make a POST call to__refresh
on demand. The problem that we are encountering is that if you make the POST call in the middle of a refresh then unexpected behavior starts to occur and eventually the dev server crashes. It would be nice to have some way to either offer some kind of throttling or at least have a way to know if we are in the middle of a refresh. (with the latter at least a custom endpoint can be created)Our understanding was that it did not behave like this before (2.16.5) and if this were to occur Gatsby would wait until the existing refresh would finish.
Steps to reproduce
Make a POST call to
__refresh
while it's refreshing.Expected result
Expected behavior.
Actual result
Query failures, crashes, etc.
Environment
(This also occurs in Windows)
EDIT: Updated
gatsby
to 2.18.21 and it is still an issue.The text was updated successfully, but these errors were encountered: