Skip to content

Commit

Permalink
better warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed Dec 13, 2024
1 parent 5fff7af commit a401cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zones.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function getSchedulers() {
var alreadyWarned = false;
function warnOutsideInjectionContext(original: any, operation: string) {
if (isDevMode()) {
console.warn(`Firebase API outside injection context (${operation})`, original);
console.warn(`Firebase API called outside injection context: ${operation}(${original})`);
if (!alreadyWarned) {
alreadyWarned = true;
console.error("Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md");
Expand Down

0 comments on commit a401cdb

Please sign in to comment.