Skip to content
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

First slide content not updating on some changes #66

Closed
DushanT opened this issue May 11, 2021 · 6 comments
Closed

First slide content not updating on some changes #66

DushanT opened this issue May 11, 2021 · 6 comments

Comments

@DushanT
Copy link

DushanT commented May 11, 2021

Bug report

Hello I found these things which are little annoying but there is still some workarounds.

First problem (Changing heading content)

If I change first heading content in demo slides.md. Nothing changes in the browser.

image

For example:

  1. change
    # Welcome to Slidev
    to
    # Welcome to Slidevs

Browser refreshes but the heading is not changed. I still see Welcome to Slidev as heading

image

If I duplicate the line:

# Welcome to Slidevs
# Welcome to Slidevs

Then the browser responds and updates the content and I see two headings.

image

Changing heading do nothing, but if I add some text as paragraph it updates correctly.

If I change the heading size (# to ##) it updates correctly as well. ¯\_(ツ)_/¯

Second problem (Presentation notes content)

If I change presentation notes for slide with presentation mode active in the browser, it does nothing.

Again if I change something that responds to change, that again changes the notes for presenter as well.

Conclusion

This two phenomenons happens only on first slide for some reason
I was able to change heading or notes on other pages, even in presentation mode. Everything works. Looks like first slide of the demo page is the problem.

Hope this helps as a bug report

@antfu
Copy link
Member

antfu commented May 11, 2021

What's your version btw?

@DushanT
Copy link
Author

DushanT commented May 12, 2021

I'm using clone of main branch from yesterday. Cloned yesterday. version 0.7.1

Browser is Brave Version 1.23.75 Chromium: 90.0.4430.93 (Official Build) (x86_64)

@DushanT
Copy link
Author

DushanT commented May 12, 2021

I am running it through npm run demo:dev in this repository.

@DushanT
Copy link
Author

DushanT commented May 12, 2021

I've tried version 0.8.1 and problem still persist.

@DushanT
Copy link
Author

DushanT commented May 12, 2021

Tried Chrome and Firefox and same thing, so it's not browser most probably. Event force refreshing page does nothing for the slide.

@DushanT
Copy link
Author

DushanT commented May 12, 2021

When I change content other than heading or comment this happens:
09:08:28 [vite] hmr update /@slidev/slides/1.md (x3)

When I change heading or comment this happens:
09:08:31 [vite] page reload slides.md

But no hmr update is triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants