mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -06:00
12 lines
377 B
TypeScript
12 lines
377 B
TypeScript
import React from 'react';
|
|
|
|
export async function initDevFeatures() {
|
|
// if why-render is in url enable why did you render react extension
|
|
if (window.location.search.indexOf('why-render') !== -1) {
|
|
const { default: whyDidYouRender } = await import('@welldone-software/why-did-you-render');
|
|
whyDidYouRender(React, {
|
|
trackAllPureComponents: true,
|
|
});
|
|
}
|
|
}
|