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

Add ugly hack for dashboard auto refresh #42

Merged
merged 2 commits into from
Aug 26, 2023
Merged

Add ugly hack for dashboard auto refresh #42

merged 2 commits into from
Aug 26, 2023

Conversation

JaneIRL
Copy link
Collaborator

@JaneIRL JaneIRL commented Aug 26, 2023

The MarkDownRenderer is a server component as it needs direct access
to the database for render context. A nice auto refresh would need to
be implemented client side as only part of the page needs to be re-rendered.

Switching MarkDownRenderer to be a client component is simply too much
work that I'm not willing to commit to so I've resorted back to this
ugly hack of server rendering a <script> tag that just refreshes
the entire page every minute.

Thank Sneh for all the work he did on this!

Closes #5.

The MarkDownRenderer is a server component as it needs direct access
to the database for render context. A nice auto refresh would need to
be implemented client side as only part of the page needs to be re-rendered.

Switching MarkDownRenderer to be a client component is simply too much
work that I'm not willing to commit to so I've resorted back to this
ugly hack of server rendering a `<script>` tag that just refreshes
the entire page every minute.

Thank Sneh for all the work he did on this!
@JaneIRL JaneIRL merged commit f28022f into main Aug 26, 2023
1 check passed
@JaneIRL JaneIRL deleted the dashboard branch August 26, 2023 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: auto refresh Dashboard cards
1 participant