#752·mdx-deck

Running mdx-deck <filename>.mdx constantly forces a repaint in the browser and the recreation of gatsby pages.

Author: domvoCreated Sep 9, 2020Updated Feb 13, 2024

When running mdx-deck <somefile>.mdx every second I get a set of messages in my terminal:

info added directory at /<path_to_project>/node_modules/mdx-deck/.cache/redux
info added directory at /<path_to_project>/node_modules/mdx-deck/.cache/redux
success building schema - 0.102s
success createPages - 0.002s
success Checking for changed pages - 0.001s
success update schema - 0.012s
success onPreExtractQueries - 0.001s
success extract queries from components - 0.014s
success write out requires - 0.002s

That itself is quite annoying already. But what's even worse is that my browser also repaints every second, which results in a noticeable flash. This is unacceptable for the creation of a slide deck.

I have a screen recording that shows the behavior: Link to screen recording (Streamable)

OS: Mac OS 10.15.5 Browser: Chrome v85 mdx-deck version 4.1.1

Steps to reproduce: Run mdx-deck or npm start in the project folder.