Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #23 from TheWebChamps/change-trace-const-name
Browse files Browse the repository at this point in the history
Change the trace constant name
  • Loading branch information
shauryaaher committed Apr 8, 2022
2 parents 54d7692 + b2ade0d commit 4e36f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default class App extends Component {
};
}
componentDidMount() {
const t = trace(performance, "Get Firestore data");
t.start();
const trace1 = trace(performance, "Get Firestore data");
trace1.start();
this.changeAuthState();
const q = query(collection(firestore, "col"));
onSnapshot(q, (querySnapshot) => {
Expand All @@ -124,7 +124,7 @@ export default class App extends Component {
});
});
});
t.stop();
trace1.stop();
}
render() {
return (
Expand Down

0 comments on commit 4e36f36

Please sign in to comment.