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

bugfix: revert useNFTCollections #8595

Merged
merged 3 commits into from
Dec 5, 2024
Merged

bugfix: revert useNFTCollections #8595

merged 3 commits into from
Dec 5, 2024

Conversation

mcayuelas-ledger
Copy link
Contributor

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Replace this text by a clear and concise description of what this pull request is about and why it is needed. Be sure to explain the problem you're addressing and the solution you're proposing.
For libraries, you can add a code sample of how to use it.
For bug fixes, you can explain the previous behaviour and how it was fixed.
In case of visual features, please attach screenshots or video recordings to demonstrate the changes.

❓ Context

  • JIRA or GitHub link:

🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@mcayuelas-ledger mcayuelas-ledger requested a review from a team as a code owner December 4, 2024 09:13
Copy link

vercel bot commented Dec 4, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
web-tools ❌ Failed (Inspect) Dec 4, 2024 3:45pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2024 3:45pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2024 3:45pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2024 3:45pm

@mcayuelas-ledger mcayuelas-ledger requested a review from a team as a code owner December 4, 2024 09:13
@live-github-bot live-github-bot bot added desktop Has changes in LLD mobile Has changes in LLM labels Dec 4, 2024
@live-github-bot live-github-bot bot added common Has changes in live-common ledgerjs Has changes in the ledgerjs open source libs labels Dec 4, 2024
@live-github-bot live-github-bot bot removed common Has changes in live-common ledgerjs Has changes in the ledgerjs open source libs labels Dec 4, 2024
@live-github-bot live-github-bot bot added common Has changes in live-common ledgerjs Has changes in the ledgerjs open source libs labels Dec 4, 2024
Comment on lines 88 to 94
setNumberOfVisibleCollections(
numberOfVisibleCollections => numberOfVisibleCollections + INCREMENT,
);
if (hasNextPage) {
fetchNextPage();
}
}, [collectionsLength, fetchNextPage, hasNextPage]);
}, [fetchNextPage, hasNextPage]);
Copy link
Member

Choose a reason for hiding this comment

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

Why don't we use collectionsLength anymore?

@@ -26,6 +26,7 @@ const useBreadCrumbModel = () => {
chains: [String(account?.currency.id)],
threshold: isThresholdValid(thresold) ? Number(thresold) : 75,
enabled: nftsFromSimplehashFeature?.enabled || false,
staleTime: nftsFromSimplehashFeature?.params?.staleTime,
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if we want to use staleTime as now I have a request that is sent after some time when I stay on the Collection page. We don't want to send requests if LEdger Live stays open a while on the same page.

@mcayuelas-ledger mcayuelas-ledger merged commit 1447c15 into develop Dec 5, 2024
53 of 55 checks passed
@mcayuelas-ledger mcayuelas-ledger deleted the bugfix/revert branch December 5, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD ledgerjs Has changes in the ledgerjs open source libs mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants