Revision 72b9555487ba00c1c3c8212dfb6af3a968c036a9 authored by Julien Duchesne on 12 October 2022, 11:07:13 UTC, committed by GitHub on 12 October 2022, 11:07:13 UTC
:facepalm:

Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com>
1 parent 719769e
Raw File
dev.ts
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,
    });
  }
}
back to top