Skip to content

Commit

Permalink
Merge pull request #847 from ephemeraHQ/lr/wdyr-env
Browse files Browse the repository at this point in the history
Add env var to enable wdyr (why did you render)
  • Loading branch information
lourou authored Sep 30, 2024
2 parents 61441bf + a530216 commit 047ac02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wdyr.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

if (process.env.NODE_ENV === "development") {
if (process.env.NODE_ENV === "development" && process.env.EXPO_PUBLIC_WDYR === "true") {
const whyDidYouRender = require("@welldone-software/why-did-you-render");
whyDidYouRender(React, {
trackAllPureComponents: true,
Expand Down

0 comments on commit 047ac02

Please sign in to comment.