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

Optimize snap #36

Merged
merged 10 commits into from
Apr 3, 2024
Merged

Optimize snap #36

merged 10 commits into from
Apr 3, 2024

Conversation

Montoya
Copy link
Collaborator

@Montoya Montoya commented Apr 2, 2024

This optimizes the loading of the homepage UI, changes the onInstall dialog, and provides a better way to set the watch address.

Please have a look at these changes, and if you approve, please publish a new version of the Snap to npm.

Also, I think we should consider adding a timestamp to certain information being loaded. For example, it does not make sense to load the activations from netlify on every request. That information could probably be cached for at least 5 minutes. You could store a timestamp in manageState with the last time the activations were loaded, and if it has been less than 5 minutes, just load that information from state instead of calling netlify again.

@alainncls alainncls merged commit d349a7c into main Apr 3, 2024
7 checks passed
@alainncls alainncls deleted the optimize-snap branch April 3, 2024 12:49
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.

3 participants