Skip to content

getAuth is adding new events listeners infinitely #8642

@mbret

Description

@mbret

Operating System

mac

Environment (if applicable)

chrome

Firebase SDK Version

11.0.1

Firebase SDK Product(s)

Auth

Project Tooling

vite

Detailed Problem Description

When calling getAuth at top level module (not in a loop) the performance tabs show events being added infiitely by batch of 2 every second.

This looks like some sort of heartbeat that does not clean up correctly.

Steps and code to reproduce issue

import { getAuth } from "firebase/auth"

const auth = getAuth()

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