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

Don't show loading skeleton each time mailbox is changed #10715

Open
st3iny opened this issue Feb 18, 2025 · 1 comment · May be fixed by #10743
Open

Don't show loading skeleton each time mailbox is changed #10715

st3iny opened this issue Feb 18, 2025 · 1 comment · May be fixed by #10743

Comments

@st3iny
Copy link
Member

st3iny commented Feb 18, 2025

Is your feature request related to a problem? Please describe.

Rapidly switching between two mailboxes will cause a loading skeleton to be shown each time. However, once a mailbox has been opened it should be cached in the frontend.

Describe the solution you'd like

Only show the skeleton the first time when a mailbox is initially loading. The list should be rendered instantly on the second open. Loading fresh emails should happen in the background and not prevent the envelope list from being rendered.

Describe alternatives you've considered

No response

Additional context

No response

@st3iny st3iny changed the title Cache mailbox contents in the frontend Don't show loading skeleton each time mailbox is changed Feb 18, 2025
@st3iny
Copy link
Member Author

st3iny commented Feb 24, 2025

I investigated this a bit more and there is a XHR request each time the mailbox is changed:
GET /apps/mail/api/messages?mailboxId=8350&limit=20

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

Successfully merging a pull request may close this issue.

1 participant