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

fix(cache): Exclude custom assets from cache retrieval logic FE-1122 #1710

Merged
merged 4 commits into from
Jan 3, 2025

Conversation

nelitow
Copy link
Contributor

@nelitow nelitow commented Dec 13, 2024

Custom assets when added or updated required a page reload or a 5 minutes timeout to be updated in the wallet.
By excluding these custom assets from the cache, they are refetched locally instantly whenever the user adds or updates the asset data.

As this is not a network request, a simple local refetch should not affect performance.
Before:
https://github.com/user-attachments/assets/573f3d9c-64c2-4e25-8650-3bbb997e42ae

After:
https://github.com/user-attachments/assets/e027e4ec-bffa-4a3d-b8d3-66da3bda1713

@LuizAsFight LuizAsFight merged commit 4c53007 into master Jan 3, 2025
18 checks passed
@LuizAsFight LuizAsFight deleted the nj/fix/custom-assets-upsert branch January 3, 2025 21:33
LuizAsFight pushed a commit that referenced this pull request Jan 19, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to master, this PR
will be updated.


# Releases
## @fuels/[email protected]



## [email protected]

### Minor Changes

- [#1764](#1764)
[`d81ee482`](d81ee48)
Thanks [@helciofranco](https://github.com/helciofranco)! - Add current
account connection status to the header

- [#1762](#1762)
[`2460beef`](2460bee)
Thanks [@helciofranco](https://github.com/helciofranco)! - Add a
separate NFTs tab to the home screen.

- [#1710](#1710)
[`4c530078`](4c53007)
Thanks [@nelitow](https://github.com/nelitow)! - Improve handling of
custom assets.

### Patch Changes

- [#1778](#1778)
[`6ddb0014`](6ddb001)
Thanks [@LuizAsFight](https://github.com/LuizAsFight)! - fix: review
button entering on loading state after getting ready to approve

- [#1725](#1725)
[`28628cbd`](28628cb)
Thanks [@nelitow](https://github.com/nelitow)! - Allow editing network
name when adding.

- [#1778](#1778)
[`6ddb0014`](6ddb001)
Thanks [@LuizAsFight](https://github.com/LuizAsFight)! - feat: remove
intentional longer loading states to avoid blinking.

-   Updated dependencies \[]:
    -   @fuel-wallet/[email protected]
    -   @fuels/[email protected]

## @fuel-wallet/[email protected]



## @fuel-wallet/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

2 participants