Skip to content

Bug Report: Endless Cookie Rendering Loopย #733

Open

Description

@Adebesin-Cell

โœ… Prerequisites

  • Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
  • Are you reporting to the correct repository (magic-sdk)?

๐Ÿ› Description

Upon initializing the Wagmi connector into my project, I noticed a peculiar behavior related to cookie rendering.

๐Ÿงฉ Steps to Reproduce

  1. Integrate the Wagmi connector into the project.
  2. Initialize the Wagmi connector within the codebase.
  3. Observe the rendering behavior of cookies.
  4. Notice the continuous rendering of cookies without halt.

๐Ÿค” Expected behavior

I expected the cookies to render appropriately upon initialization and to cease rendering once initialized. There should be no continuous loop of cookie rendering.

๐Ÿ˜ฎ Actual behavior

The cookies enter an infinite rendering loop, continually rendering without cessation. This behavior triggers an error marked with number of times it has rendered, indicating that the cookies have been rendered an excessive number of times. Consequently, this error warns that third-party cookie functionality may be blocked.

๐Ÿ’ป Code Sample

https://stackblitz.com/edit/stackblitz-starters-bbb65e?file=app%2Fpage.tsx,app%2Fconfig.ts,package.json

Screenshots

Screenshot 2024-03-25 at 5 38 25 PM

๐ŸŒŽ Environment

Software Version(s)
magic-sdk 18.3.0
Browser Vivaldi
yarn >=1.22.0
Operating System Mac OS Ventura 13.1 (22C65)

Activity

  1. Royal-lobster commented on Mar 27, 2024

    @Royal-lobster

    This seems to be a issue on almost all sites that has magic login integrations

    image

    image image image
  2. hubagaspar91 commented on Apr 17, 2024

    @hubagaspar91

    Yep, we're experiencing this issue as well, we recently upgraded https://github.com/magiclabs/wagmi-magic-connector in our project from 1.1.5 to 2.0.0, which it seems also comes with a magic SDK version upgrade.

  3. TheGreatAlgo commented on May 24, 2024

    @TheGreatAlgo

    Having same issue too. we were on 8.1.0 (time for upgrade lol) and having the issue

  4. mjafri118 commented on Jun 18, 2024

    @mjafri118

    is there a fix to this? upgrading does not seem to help.

  5. Wyxuch commented on Jun 25, 2024

    @Wyxuch

    Hi there!
    this bug still occurring in 28.0.7. Is there any chance to fix that in the upcoming updates?

  6. bowis commented on Oct 20, 2024

    @bowis

    Same issue here still

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions