-
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-plugin-netlify-cms]: admin doesn't update unless Gatsby is restarted #10767
Comments
Thank you for opening @SachaG Yeah, looks like the I can't login with Netlify Identity to your fork so can't test this myself but can you please try wrapping the From https://webpack.js.org/api/hot-module-replacement/
|
I updated my code like this:
But it doesn't seem to work, sorry… I think the issue is that changes in |
So turns that this is much harder to do than I initially thought I managed to setup a separate instance of Since this use case is pretty specific to this plugin, it looks like we'll have to put it on hold for the moment 🙁 Would you like to take a look at this @erquhart? |
I would be most interested in this too. It is painful to have to restart when developing Editor components and previews. |
Digging into this now. |
Hot reloading looks like it would be a hot mess to implement for our parallel webpack build, but I'm opening a PR to at least watch CMS files, so you can get changes by refreshing. Hope it helps! |
Yeah I don't think hot reloading is needed at all, refreshing is plenty, thanks! |
Fix published in |
Description
Using the NetlifyCMS plugin, I've noticed that the files used by the plugin don't update unless I stop and restart Gatsby. For example, I wanted to modify the CMS' preview templates or
config.yml
settings, and that doesn't actually do anything until the restart. cc @erquhart.Steps to reproduce
Code: https://github.com/zenstokyo/ZensHomeBlog
Expected result
Code should either live reload, or at least update on page refresh.
Actual result
No changes are taken into account until hard restart.
Environment
The text was updated successfully, but these errors were encountered: