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

Get profiles from cache on initial load #19

Open
leifriksheim opened this issue Feb 7, 2022 · 1 comment
Open

Get profiles from cache on initial load #19

leifriksheim opened this issue Feb 7, 2022 · 1 comment
Assignees

Comments

@leifriksheim
Copy link
Contributor

We need to do the same as we do at line 98 in ChatContext.tsx with the profiles as well. This means to get the profile data from cache on the initial load, so the UI seems faster.

@fayeed
Copy link
Member

fayeed commented Feb 8, 2022

We are doing this in getProfile.ts but I have added a timeout so if the cache data is older than 5 mins it gets invalidated and we fetch again.

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

No branches or pull requests

2 participants