-
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
(gatsby-transformer-remark): Cache - transform changes are not refreshed if content isn't changed #26633
Comments
I thought that hot reload only changes if the code is changed, not the markdown |
It is also changed for any markdown changes |
Some notes after initial investigation:
|
More details: it's not re-running the query for the page, because it looks like the markdown node is unchanged. The embed-snippet plugin doesn't load the embed as a File node, but manually loads it from the filesystem. This means it can't keep track of it as a dependency. My problem now is working out why it ever worked, because right now I can't see how it would ever know if the file had changed. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 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 60 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! 💪💜 |
That's right. But even if I load the file as a node and keep all the dependencies, there looks to be no way to trigger transform run again. The source Looks like there is no way to achieve this behavior with gatsby at the moment. @ascorbic do I miss something? Can you suggest a way to trigger transform run again? |
I'm currently working on a fork of the For now, I've just copy/pasted the Is there some option I can set somewhere to just turn off this "GraphQL/caching" data layer? Basically like @RomanHotsiy said, I want to force the transformer to always rerun and grab the contents in the embed every time its parent |
Description
When using
gatsby-remark-embed-snippet
(or any other plugin that read other file as remark transform) changes are not shown. Not even after restart. I have to clean the cache or change the relatedmd
file where I want to see these changes.Steps to reproduce
Small project: https://github.com/majcn/gatsby-snippet-cache-issue
content/blog/page/embed.js
Expected result
Changes are shown in the browser (http://localhost:8000/page/).
Actual result
Changes are not shown in the browser (http://localhost:8000/page/). Even after the restart. I had to execute
gatsby clean
Environment
The text was updated successfully, but these errors were encountered: