angular / angular/angularfire

DEBUG_MODE is false only if it is not listed in app.module.ts

Open
#3,179 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.8k
Forks
2.2k
Avg merge
22h 28m
Merged PRs (30d)
6

Description

### Version info

**Angular:** 12.2.0

**Firebase:** 9.6.6

**AngularFire:** 7.2.1

### How to reproduce these conditions

**Steps to set up and reproduce**

In app.module.ts:

`{ provide: DEBUG_MODE, useValue: true }`
`{ provide: DEBUG_MODE, useValue: false }`

Both two use cases listed above activate the debug mode in Firebase Console. If I omit DEBUG_MODE altogether from providers, only then does it not activate debug mode.

Contributor guide

Open the contributing guide

Research direction

Start with the DEBUG_MODE provider entries in app.module.ts and trace how AngularFire passes that value to Firebase. Reproduce the behavior with DEBUG_MODE set to true, false, and omitted, then verify that false no longer activates debug mode in the Firebase Console.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, firebase, typescript
Domain
developer-experience, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.