forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
353 B
11 lines
353 B
import React from 'react';
|
|
|
|
export function initDevFeatures() {
|
|
// if why-render is in url enable why did you render react extension
|
|
if (window.location.search.indexOf('why-render') !== -1) {
|
|
const whyDidYouRender = require('@welldone-software/why-did-you-render');
|
|
whyDidYouRender(React, {
|
|
trackAllPureComponents: true,
|
|
});
|
|
}
|
|
}
|
|
|