New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot Webpack with react-refresh-webpack-plugin
and react-refresh
not working.
#233
Comments
Try this in /// <reference types="@welldone-software/why-did-you-render" />
import React from "react";
if (process.env.NODE_ENV === 'development') {
const whyDidYouRender = require("@welldone-software/why-did-you-render");
whyDidYouRender(React, {
trackAllPureComponents: true,
logOnDifferentValues: true,
collapseGroups: true,
trackHooks: true,
});
} |
Thanks. I've tried a few variations. Still nothing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working with typescript and webpack. Any component wrapped in WDYR will not refresh.
I did notice if you wrap a component
whyDidYouRender
it will reload.webpack.config.js
entry.tsx
wdyr.ts
These may be related.
#224
#201
The text was updated successfully, but these errors were encountered: