Is UploadThing's UploadButton having refresh issues in 7.x?
I was going through Theo's 0-production video recently, but since it is a year old, I was trying to modernize it a bit with a more current package version. I created an Issue on pingdotgg/uploadthing regarding UploadButton refreshing my screen while not letting me select an item to upload. Wasnt sure what is going on about it. I tried on Chrome and Safari.
url: https://github.com/pingdotgg/uploadthing/issues/1190
I am trying to understand what im doing wrong. It seems like it is in part a Chrome Issue, but the refresh seems odd too. Trying to think of what is different between 6 and 7 that might be causing the issue. When testing on Safari, it will open the file picker but refresh the page.
Thoughts?
GitHub
[bug]: UploadButton click reloads page which out doing file selecti...
Provide environment information Vercel Deployment with issue: https://t3-sample-pi.vercel.app/ Here is a reproduced changeset: https://github.com/fallenreaper/t3-sample/commit/28f0f05dffea1cb7d4f20...
Solution:Jump to solution
Isolated the button to an MVP and it works fine.
Looked like it was related to Clerk.
Looked at the underlying code, and noticed auto-complete didnt have it as
<SignedIn>
but instead <SignInButton>
so it was attempting to conduct a sign in that wrapped the UploadButton.
This is working, so im going to close this ticket...1 Reply
Solution
Isolated the button to an MVP and it works fine.
Looked like it was related to Clerk.
Looked at the underlying code, and noticed auto-complete didnt have it as
<SignedIn>
but instead <SignInButton>
so it was attempting to conduct a sign in that wrapped the UploadButton.
This is working, so im going to close this ticket