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

[C-5564] Upgrade react-query to 5x #10777

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

dylanjeffers
Copy link
Contributor

@dylanjeffers dylanjeffers commented Dec 18, 2024

Description

  • Upgrades react-query to 5x
  • Updates current usage to new api

Note this should be reviewed after #10776 is merged

Copy link
Contributor

@amendelsohn amendelsohn left a comment

Choose a reason for hiding this comment

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

Awesome, thank you 🙏

Looks like this includes changes from removing trpc which has its own PR, so I mostly focused on the react-query upgrade, but it all lgtm!

@@ -223,7 +223,7 @@ export function CommentSectionProvider<NavigationProp>(
)

const commentSectionLoading =
(status === 'loading' || isFetching) && !isLoadingMorePages
(status === 'pending' || isFetching) && !isLoadingMorePages
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a change in react-query? is it a different state or just the new name for loading?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -14,13 +14,14 @@ declare global {
var IMAGE_CACHE: Set<string>
}

if (global) {
if (typeof global !== 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch

@dylanjeffers dylanjeffers force-pushed the c-5564-upgrade-react-query branch from 51a0de0 to 9fdd497 Compare December 19, 2024 08:41
Copy link

changeset-bot bot commented Dec 19, 2024

⚠️ No Changeset found

Latest commit: 9fdd497

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers dylanjeffers merged commit 14f63c7 into main Dec 19, 2024
4 checks passed
@dylanjeffers dylanjeffers deleted the c-5564-upgrade-react-query branch December 19, 2024 08:41
audius-infra pushed a commit that referenced this pull request Dec 19, 2024
[14f63c7] [C-5564] Upgrade react-query to 5x (#10777) Dylan Jeffers
[4b88529] play event mem queue (#10784) alecsavvy
[84b6113] update core to cometbft 1.0 (#10781) alecsavvy
[531efe1] [PAY-3705] Fix search playlists expanding tracks (#10780) Raymond Jacobson
[4a37bed] mediorum play event queue (#10757) alecsavvy
[0d06502] [PAY-3682] Create stage one shot migration (#10764) Isaac Solo
[37b29b1] Add one shot challenge manager (#10763) Isaac Solo
[06c2678] [C-5562] Migrate follows-you to api (#10774) Dylan Jeffers
audius-infra pushed a commit that referenced this pull request Dec 21, 2024
[29ca128] [C-5566] Upgrade prettier to support ternary indent (#10791) Andrew Mendelsohn
[c95b867] Remove react query test pages (#10822) Dylan Jeffers
[2ca1362] Update context imports to fix circular dependency (#10821) Dylan Jeffers
[f8fc3fe] [C-5567] Add core entity react-query hooks (#10796) Dylan Jeffers
[4ade1a8] [QA-1892] Fix aggressive emoji (#10816) Sebastian Klingler
[8ace1db] Remove libs from web/mobile (#10650) Raymond Jacobson
[e872cbf] Fix Wormhole contract typehash and deadline, fix RPC request signature (#10807) Marcus Pasell
[0722c33] Remove support for Eth AUDIO send from client (#10803) Marcus Pasell
[5678ece] Use sdk for metadata time on addTrackToPlaylist (#10801) Raymond Jacobson
[3b88339] Remove Buy USDC via Coinflow (#10802) Marcus Pasell
[2fdaaef] [C-5507] Clear the queue if track with replaced audio is in the queue (#10800) Kyle Shanks
[532ed0c] Remove libs from metamask modal (#10799) Raymond Jacobson
[f61c488] Migrate useCoinflowWithdrawalAdapter to SDK (#10782) Marcus Pasell
[6e5ab0d] Migrate createTransferToUserBankTransaction to SDK (#10783) Marcus Pasell
[9ecbb53] Migrate all but balanceOf to sdk clients (#10792) Randy Schott
[0660f35] [C-5534] Add feature tagging to errorSagas (#10765) Andrew Mendelsohn
[09b735a] Revert "Fix local turbo by upgrading react-native-svg (#10790)" (#10794) Raymond Jacobson
[82d9259] [PAY-3720][PAY-3718][PAY-3709] Add Harmony Components: NavItem, BalancePill, and NotificationCount (#10793) Farid Salau
[1160d85] [PAY-3655] Fix issues with artwork edit (#10786) Sebastian Klingler
[14f63c7] [C-5564] Upgrade react-query to 5x (#10777) Dylan Jeffers
[3e4eab4] Fix local turbo by upgrading react-native-svg (#10790) Raymond Jacobson
[6da87bb] [C-5563] Remove trpc from common, web, and mobile (#10776) Dylan Jeffers
[032af7a] Remove some unused things in audiusBackend (#10785) Randy Schott
[8ea4716] [PAY-3656] Fix bootsplash animation (#10769) Raymond Jacobson
[c193b06] [PAY-3661] Fix audio balance checks (#10762) Randy Schott
[1a4ff4a] [PAY-3654] Fix trending image flashing (#10766) Raymond Jacobson
[ba49b80] [C-5536] Make sentry release versions match ours (#10753) JD Francis
[9592cf9] Remove buy-crypto flows (#10768) Marcus Pasell
[06c2678] [C-5562] Migrate follows-you to api (#10774) Dylan Jeffers
[22420a9] Fix nav-menu theme (#10778) Dylan Jeffers
[74f99e6] [PAY-3664] Avoid showing green buy btn when insufficient balance (#10771) Raymond Jacobson
[17dc919] [PAY-3677] Fix mobile explore collections (#10754) Raymond Jacobson
[8a08bde] Fix ssr by using typeof checks on global (#10775) Dylan Jeffers
[cce74dd] [C-5549] Migrate album backlinks to api (#10758) Dylan Jeffers
[8e857ed] Improve mobile image loading (#10770) Raymond Jacobson
[07d1d82] [PAY-3671] Fix divider spacing before 'Add some tracks' (#10767) Raymond Jacobson
[bef0bef] [C-5500] Fix upload flow track replace (#10761) Kyle Shanks
[50a2adf] [C-4730] Add native Artwork component (#10743) Dylan Jeffers
[363e1bb] [PAY-4702] Remove getUnclaimedPlaylistId in favor of sdk generatePlaylistId (#10759) Sebastian Klingler
[7f58e98] Always recover BuyAudio on page load (#10756) Marcus Pasell
[bd0cb99] [PAY-3672] Add scroll view for notifications (#10755) Raymond Jacobson
[70f718f] [PAY-3700] Improve drawer close button (#10751) Sebastian Klingler
[acdc2e5] Dedupe welcome email (#10752) Isaac Solo
[70159a6] Parse guest email in local storage (#10750) Isaac Solo
[65fd923] ⚠️ [PAY-2944] Migrate collections to sdk (including upload) (#10735) Sebastian Klingler
[1e21016] [PAY-3657] UPC field should be optional (#10745) Randy Schott
[c58b439] [C-5534] Add more feature tags reportToSentry (#10738) Andrew Mendelsohn
[77ccded] Fix follow artists on profile completion race condition (#10744) Isaac Solo
[76fd508] [PAY-3653] Re-land feed performance improvements (#10741) Raymond Jacobson
[72d3770] Improve sdk bundle size for SSR purposes (#10731) Raymond Jacobson
[1619918] Fix guestEmail account slice (#10742) Dylan Jeffers
[77a5f19] Guest checkout zombie state access (#10718) Isaac Solo
[1e74f91] [C-5540] Stop logging console & network errors to sentry (#10737) Andrew Mendelsohn
[3efba3f] Undo added fatal sentry logs (keep them only on "crashes") (#10736) JD Francis
[b20b2f8] Upgrade ios simulator to 16 pro (#10728) Dylan Jeffers
[e66c512] [C-5386] Guest checkout sale notifications and UI (#10713) Dylan Jeffers
[2e731ed] [C-5522] Add mobile sign up deep links (#10712) Dylan Jeffers
[68ca618] Clean up some other lingering libs usage (#10729) Randy Schott
[dd7b541] [PAY-3646] Remove audius api client (#10720) Raymond Jacobson
[eecaa66] Remove segmented-control log Dylan Jeffers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants