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

feat(web): templates store - fe caching for blueprints #3484

Merged
merged 3 commits into from
May 24, 2023

Conversation

LetItRock
Copy link
Contributor

What change does this PR introduce?

Added the FE caching logic for the blueprints, they will be cached for 1 week in the indexedDB.

Why was this change needed?

Templates Store PRD.

Other information (Screenshots)

Screenshot 2023-05-23 at 14 05 16

@LetItRock LetItRock self-assigned this May 23, 2023
@linear
Copy link

linear bot commented May 23, 2023

NV-2359 🏪 [Template store] Implement the FE caching

What?

We would like to cache the blueprints response in the localStorage or indexedDB for a one week as the items will change really rare.

Why? (Context)

To provide a better UX and fast feedback.

Definition of Done

The blueprints response is cached on FE for 1 week.

Copy link
Contributor

@djabarovgeorge djabarovgeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it works as expected then it looks good to me 🚀

small note not related to this pr, if I will have spare time I was thinking to get the same hardcoded popular templates (from @shared) to the client, if we will add this logic I think we can definitely reduce the client cache to 1 day, I really afraid we will abuse this client caching really fast 😅

Base automatically changed from nv-2361-template-store-integrate-with-api to next May 24, 2023 10:41
@LetItRock LetItRock added this pull request to the merge queue May 24, 2023
Merged via the queue into next with commit 78225eb May 24, 2023
32 checks passed
@LetItRock LetItRock deleted the nv-2359-template-store-blueprints-fe-caching branch May 24, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants