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: change query persister to chrome storage, closes #5153 #5172

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

alter-eggo
Copy link
Contributor

@alter-eggo alter-eggo commented Apr 5, 2024

Try out Leather build d11830cExtension build, Test report, Storybook, Chromatic

Problem in transactions caching was that txs list size is too big to be cached in local storage, so I changed persister to chrome.storage.local

@alter-eggo alter-eggo linked an issue Apr 5, 2024 that may be closed by this pull request
Copy link
Collaborator

@kyranjamie kyranjamie left a comment

Choose a reason for hiding this comment

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

Nice fix, but caution adding the /

@@ -34,7 +34,7 @@ export enum RouteUrls {
ViewSecretKey = '/view-secret-key',

// nested routes must have relative paths
Activity = 'activity',
Activity = '/activity',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this change? Maybe this have unintended consequences?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is ui bug - if refresh page being on activity tab => tab is not active

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested actually, and seems all good

Copy link
Contributor

Choose a reason for hiding this comment

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

Changing this will add a warning in the console, that's why I added the comment there:
// nested routes must have relative paths

I think we should solve the refresh bug differently

Copy link
Contributor

Choose a reason for hiding this comment

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

I checked and I'm pretty sure I had to change all of these routes here to avoid a console warning but I can't see that now after this change so I think it could be OK.

In future, if you are fixing bugs you should at least have a separate commit message for that fix saying what it is and why in case we need to revisit it

@alter-eggo alter-eggo added this pull request to the merge queue Apr 5, 2024
Merged via the queue into dev with commit 1cd2625 Apr 5, 2024
28 checks passed
@alter-eggo alter-eggo deleted the fix/txs-list-cache branch April 5, 2024 15:04
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.

Slow loading times for activity list
3 participants