Skip to content

Commit 61faaf2

Browse files
committed
Remove react-hot-loader package
Has a react < 18 peer dependency and is unmaintained. Reloading the page works well enough for the demo.
1 parent 69e903a commit 61faaf2

File tree

6 files changed

+1
-209
lines changed

6 files changed

+1
-209
lines changed

examples/parent-child-demo/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"dependencies": {
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0",
16-
"react-hot-loader": "^4.13.0",
1716
"react-lifecycle-visualizer": "3.0.1"
1817
}
1918
}

examples/parent-child-demo/src/App.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import { hot } from 'react-hot-loader/root';
32
import { resetInstanceIdCounters, Log } from 'react-lifecycle-visualizer';
43

54
import './style.scss';
@@ -14,7 +13,4 @@ const App = () => (
1413
</div>
1514
);
1615

17-
const isOnStackBlitz = module && module.id.match(/https:\/\/.+\.github\.stackblitz\.io\//);
18-
19-
// StackBlitz already does hot reloading, and setting it up here again causes errors, so we disable it.
20-
export default isOnStackBlitz ? App : hot(App);
16+
export default App;

examples/parent-child-demo/src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* global document:false */
22
import React from 'react';
33
import ReactDom from 'react-dom';
4-
import 'react-hot-loader';
54
import { VisualizerProvider } from 'react-lifecycle-visualizer';
65

76
import App from './App';

package-lock.json

-200
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"jest-css-modules": "^2.1.0",
8181
"react": "^17.0.2",
8282
"react-dom": "^17.0.2",
83-
"react-hot-loader": "^4.13.0",
8483
"sass": "^1.49.9",
8584
"sass-loader": "^12.6.0",
8685
"style-loader": "^3.3.1",

webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module.exports = {
2727
plugins: [
2828
['@babel/plugin-proposal-decorators', { legacy: true }], // NOTE: needs to precede ..-class-properties!
2929
['@babel/plugin-proposal-class-properties', {loose: false}],
30-
'react-hot-loader/babel'
3130
]
3231
}
3332
}],

0 commit comments

Comments
 (0)