UploadThing spamming terminal with: "dev server is now running"

I am using the uploadthing useUploadThing hook in my NextJS project. The hook runs every time a modal renders, causing it to call the UploadThing API, which in turn spins up a dev server. The thing is the modal has quite a lot of state causing it to rerender often. This results in the hook constantly calling the API and my terminal getting spammed with "[UT] UploadThing dev server is now running!". Is there some way to cache / make this hook global so it ONLY runs ONCE when the page is loaded?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server