Skip to content

wallet is unable to connect. infinite render of an ethereum (phantom) wallet popup #248

@kaf-lamed-beyt

Description

@kaf-lamed-beyt

a specific commit has broken the process of connecting a wallet.

my best guess is this commit (d9afffb) in particular. on my computer when i tested the latest changes, i ran into this infinite rendering of the phantom wallet as i've described in this issue: #241

i had to go some steps back into the commit history where there's a stable version of the code, and connecting a wallet just works fine as we've always had it.

Screen.Recording.2025-09-08.at.1.47.43.PM.mov

while walking through #241 with @EmmanuelOloke, we figured out that even connecting a StarkNet wallet is impossible. see the respective error:

Image

@kabugatti, could you walk me through what the essence of this function (👇🏼) is?

https://github.com/kabugatti/ZeroXBridge_Frontend/blob/2419c3d61673c5316ca9130c9e767e6de85e7e01/app/hooks/useWallet.ts#L19-L62

i also believe that the useWallet hook file should not have been updated the way it was with the various useEffects and all. which is most likely the reason that the wallet popover is always rendered even when people confirm the signature.

also, i don't understand why or the essence of the nextAuth approach/files in this (#233) PR with the Cross-Site-Request-Forgery API route. What exactly were you trying to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions