Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit dad8b4b

Browse files
authored
Merge pull request #1367 from fredr/fix/unsafe-lifecycles
Fix empty board and examples list
2 parents 705bf12 + 021d378 commit dad8b4b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/views/app/components/BoardConfig.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BoardConfig extends React.Component<IBoardConfigProps, React.Props<any>> {
3535
this.state = {};
3636
}
3737

38-
public UNSAFE_componentWillMount() {
38+
public componentWillMount() {
3939
this.props.loadInstalledBoards();
4040
this.props.loadConfigItems();
4141
}

src/views/app/components/BoardManager.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class BoardManager extends React.Component<IBoardManagerProps, IBoardManagerStat
6666
this.typeUpdate = this.typeUpdate.bind(this);
6767
}
6868

69-
public UNSAFE_componentWillMount() {
69+
public componentWillMount() {
7070
this.props.loadBoardPackages(false);
7171
}
7272

src/views/app/components/ExampleTreeView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ExampleTreeView extends React.Component<IExampleViewProps, IExampleViewSta
3939
this.onExpand = this.onExpand.bind(this);
4040
}
4141

42-
public UNSAFE_componentWillMount() {
42+
public componentWillMount() {
4343
this.props.loadExamples();
4444
}
4545

src/views/app/components/LibraryManager.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class LibraryManager extends React.Component<ILibraryManagerProps, ILibraryManag
8080
this.handleCheck = this.handleCheck.bind(this);
8181
}
8282

83-
public UNSAFE_componentWillMount() {
83+
public componentWillMount() {
8484
this.props.loadLibraries(false);
8585
}
8686

0 commit comments

Comments
 (0)