jxnblk / mdx-deck

♠️ React MDX-based presentation decks
https://mdx-deck.jxnblk.com
MIT License
11.32k stars 605 forks source link

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

Open domvo opened 3 years ago

domvo commented 3 years ago

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.

brekk commented 3 years ago

@domvo I was experiencing the same thing. As a temporary workaround I was able to get things to work by downgrading to mdx-deck@4.0.0 instead, as the error is also present in the 4.1.0 (prior) release as well.

pfeilbr commented 3 years ago

i am experiencing same issue. macOS, version 4.1.1, chrome

marioy47 commented 3 years ago

Had the same issue and downgrading to 4.0.0 solved it (had to remove the node_modules/ dir though).

Using MacOS 10.15.7 (Catalina) Node v14.12.0 Yarn 1.22.8 Brave browser Versión 1.14.84 Chromium: 85.0.4183.121 (Build oficial) (64 bits)

larswittenberg commented 3 years ago

same here with: mdx-deck 4.1.1 macOS 10.15.7 node 14.7.0 yarn 1.22.5

paulkre commented 3 years ago

I have the same problem.

rebeccapeltz commented 3 years ago

same problem

masiucd commented 3 years ago

Same for me

russiann commented 3 years ago

Same problem

kevinrodriguez-io commented 1 year ago

Same issue here. Abandonware?

rbalicki2 commented 6 months ago

I'm able to solve this by moving my presentation into a folder and running mdx-deck presentation/presentation.mdx. It may cause other issues, as I'm having trouble getting any non-custom theme to show up. Oh well!