refactor: prefix lifecycle methods with UNSAFE_

Refs #7341
This commit is contained in:
Vladimir Gorej
2021-08-12 08:57:56 +02:00
parent a9285c5aa1
commit 8c79e2a375
18 changed files with 80 additions and 30528 deletions

View File

@@ -61,7 +61,7 @@ describe("<Schemes/>", function(){
expect(setSchemeSpy.mock.calls.length).toEqual(1)
// After an update
wrapper.instance().componentWillReceiveProps(props)
wrapper.instance().UNSAFE_componentWillReceiveProps(props)
// Should not be called again, since `currentScheme` is in schemes
expect(setSchemeSpy.mock.calls.length).toEqual(1)