Test
---
Test 2
->
Test
---
Test 2!
= No Update
Test!
---
Test 2!
= Both updates appear.
Really strange one.
To fix your mdx-deck v3 project temporarily, run the following commands in your presentation project:
rm -rf node_modules
npm install [email protected] -D --save-exact
npm install
Can you create a reproduction? This should be working
Sure here you go: https://github.com/jonsherrard/mdx-repro
Thanks! I'm seeing this too locally – very weird... will need to dig into this a bit later
OK that's good to know - I'd have a prod around but it's changed so much since moving to Gatsby!
It also happens if you have multiple slides, not just two. Only the first slide registers as an update. Where does MDX-Deck split the mdx file on the thematicBreak node? I could have a nosey around too...
FWIW most of the relevant code is probably in the gatsby-theme-mdx-deck package now, this is the wrapper component for splitting slides: https://github.com/jxnblk/mdx-deck/blob/master/packages/gatsby-theme/src/split-slides.js which is used here https://github.com/jxnblk/mdx-deck/blob/f9bc2456ff233157c74d5f9e0029eff25417f11b/packages/gatsby-theme/src/templates/deck.js
Awesome thanks!
Thanks. I already thought I'm the only one with this problem. I just downgraded to v2.5.1 as temporary solution till the bug is fixed in v3.
Just confirming @patlux's recommendation, this bug is present in all v3.x.x versions
Further research:
Removing Gatsby and React Hot Loader and reinstalling some previous versions of Gatsby:
rm -rf node_modules/gatsby*
rm -rf node_modules/@gatsbyjs
rm -rf node_modules/react-hot-loader
npm install [email protected]
Everything works as expected 👍
rm -rf node_modules/gatsby*
rm -rf node_modules/@gatsbyjs
rm -rf node_modules/react-hot-loader
npm install [email protected]
Then the bug is introduced. 👎
So I think somewhere in here: https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.15.0, lies the issue!
I'll have a 🔍 now. I don't know if https://github.com/gatsbyjs/gatsby/pull/16091 this PR contains most of the changes for v2.15.0 of Gatsby - but I think it might...
I believe this is fixed in #493 (v3.0.13), but please reopen if the issue persists
Thank you @jxblnk! super appreciative of mdx-deck. Owe you one! Sorry I couldn’t figure it out 😓
Most helpful comment
Thanks. I already thought I'm the only one with this problem. I just downgraded to v2.5.1 as temporary solution till the bug is fixed in v3.