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

Fix: improve scrolling speed and hiccups #84

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

pd95
Copy link
Contributor

@pd95 pd95 commented Jul 30, 2024

Another draft PR which I'm working on: since code-highlighting takes ups real processing time, I thing it should be cached somehow.

The problem occurs when switching between chats.

pd95 added 7 commits July 30, 2024 10:25
This avoids multiple JS object loading and initializations
There are no navigation links which would trigger this.
`ChatView` works with a full chat.
`MessageView` works on a single `Message`.
A single, unique, invisible view serves as scroll target for the "bottom" of the list.
@kevinhermawan
Copy link
Owner

Awesome work! 👀

pd95 added 3 commits July 30, 2024 19:03
Use again `.task()` modifier for loading, so we could (potentially in the future) load on a background queue (currently it uses the `mainContext`)
@pd95 pd95 marked this pull request as ready for review July 30, 2024 17:51
@kevinhermawan
Copy link
Owner

Thanks! I will review this after work.

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.

2 participants