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

Graph-component displays no content on first pageload #1231

Open
McGrapefruit opened this issue Jun 23, 2024 · 1 comment
Open

Graph-component displays no content on first pageload #1231

McGrapefruit opened this issue Jun 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@McGrapefruit
Copy link

Thank you in advance for your help with this! <3

Describe the bug
When my quartz-page is loaded, the graph displays no content on first pageload. Only if the site is refreshed again, the graph-nodes are displayed.
I believe it has something to do with the fact, that I made the component desktop only Component.DesktopOnly(Component.Graph()), (since it is on the left sidebar and would otherwise show up in the mobile header-menu)

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://quanta.nikolaus-leonard.de/'
  2. See error: Graph has no content on first load

Expected behavior
Graph should show linked notes on first pageload.

Source
quartz site: https://quanta.nikolaus-leonard.de/
Github Repository: https://github.com/McGrapefruit/pink-quanta

Desktop (please complete the following information):

  • Quartz Version: v4.2.3
  • node Version: v20.12.2
  • Browser: Arc, Chrome, Safari
@McGrapefruit McGrapefruit added the bug Something isn't working label Jun 23, 2024
@McGrapefruit
Copy link
Author

Also, I would love the possibility to add a Component.MobileOnly(Component.Graph()), to the right sidebar (mobile-footer).

Goal: Have the Graph on the left on Desktop and on the bottom on Mobile.

Reality: If I add Component.MobileOnly(Component.Graph()), to the right sidebar, the component is visible in the mobile-footer, but without content. Even if I refresh the page, no nodes will be shown, it stays empty.
It seems like the component is not built to be added two times within the quartz.layout.ts ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant