Vim's swap file breaks refresh of MDX documents #38276
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
I'm using gatsby-plugin-mdx to create pages from MDX files. If I run Gatsby in development mode and edit one of those files with Vim (and active
swapfile
option), the refresh of the page in the browser breaks, i.e. the content is not updated. A hard refresh does not help either. Closing Vim and removing the swap file does not solve the issue; one has to restartgatsby develop
to see updates again.Using different editors or deactivating the swap file, the refresh works as expected (if it was not broken beforehand by using Vim).
Reproduction Link
https://github.com/jgosmann/gatsby-mdx-broken-refresh
Steps to Reproduce
npx gatsby develop
vim src/content/main.mdx
:set swapfile
Expected Result
Even when editing with Vim (and when a swap file is created), the page refreshes with the new content in the development mode.
Actual Result
The page does not refresh with new content.
Environment
Config Flags
The text was updated successfully, but these errors were encountered: