Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Upgrade React Version #691

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class App extends Component {
this.userSession = new UserSession()
}

componentWillMount() {
UNSAFE_componentWillMount() {
const session = this.userSession
if(!session.isUserSignedIn() && session.isSignInPending()) {
session.handlePendingSignIn()
Expand Down
2 changes: 1 addition & 1 deletion src/EditMe.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class EditMe extends Component {

}

componentWillMount() {
UNSAFE_componentWillMount() {
this.loadMe()
}

Expand Down
4 changes: 2 additions & 2 deletions src/Kingdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Kingdom extends Component {
this.loadKingdom = this.loadKingdom.bind(this)
}

componentWillMount() {
UNSAFE_componentWillMount() {
const app = this.state.app
const ruler = this.props.ruler
this.loadKingdom(ruler, app)
Expand All @@ -48,7 +48,7 @@ class Kingdom extends Component {
}
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const nextSubjects = nextProps.subjects
if(nextSubjects) {
if (nextSubjects.length !== this.state.subjects.length) {
Expand Down
2 changes: 1 addition & 1 deletion src/OtherKingdoms.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class OtherKingdoms extends Component {
this.resolveKingdoms = this.resolveKingdoms.bind(this)
}

componentWillMount() {
UNSAFE_componentWillMount() {
this.resolveKingdoms()
}

Expand Down
2 changes: 1 addition & 1 deletion src/SignedIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SignedIn extends Component {
this.signOut = this.signOut.bind(this)
}

componentWillMount() {
UNSAFE_componentWillMount() {
this.loadMe()
}

Expand Down