DEBUG_MODE is false only if it is not listed in app.module.ts
- 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
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