starknet-react icon indicating copy to clipboard operation
starknet-react copied to clipboard

useDisconnect freezes UI on React 19

Open AzrielTheHellrazor opened this issue 6 months ago • 2 comments

We're building a product using React 19, and we encountered an issue with the useDisconnect function from the starknet-react library. When we call this function, the entire website freezes immediately, and all buttons become unresponsive. We've tried both calling it directly and wrapping it in an async function, but the issue persists. We noticed that the library is marked as compatible with React 18, so we suspect this issue may be related to React version compatibility. Is there any planned support for React 19 or known issues with it?

AzrielTheHellrazor avatar Jun 04 '25 22:06 AzrielTheHellrazor

Thanks for reporting this! We’ll look into it. If you can share a minimal reproduction (CodeSandbox or repo), that would be super helpful.

jaipaljadeja avatar Jun 05 '25 05:06 jaipaljadeja

I am an experienced MERN Developer, who has used Wagmi extensively. I can handle this issue

lucifer1017 avatar Sep 11 '25 16:09 lucifer1017