Skip to content

Conversation

@rickyrombo
Copy link
Contributor

Moves all the upload logic from UploadPage into its own hook that can be shared with mobile

@changeset-bot
Copy link

changeset-bot bot commented Jan 22, 2026

⚠️ No Changeset found

Latest commit: 3ed452b

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

audiusSdk,
userId,
wallet,
userId: userId!,
Copy link
Member

Choose a reason for hiding this comment

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

we throw an err above on missing userId/wallet, maybe should do the same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We check inside the hook so that we don't error on render but error when you call the mutation

)
}

const getTrackArtworkUploadHandles = async (
Copy link
Member

Choose a reason for hiding this comment

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

handle is also overloaded, maybe handler? or just getTrackArtworkUploadTask?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah true. luckily these aren't exported so hopefully clear in context? Task feels fine though too, down to rename in a later pr (don't want to muck the rebasing)

)

return { startUpload, finishUpload }
}
Copy link
Member

Choose a reason for hiding this comment

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

love this file

@rickyrombo rickyrombo merged commit 67f8c16 into mjp-tus-edit-replace-audio Jan 22, 2026
12 of 14 checks passed
@rickyrombo rickyrombo deleted the mjp-tus-upload-hook branch January 22, 2026 19:25
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.

3 participants