Workiva / react-dart

Dart Bindings for React JS
BSD 2-Clause "Simplified" License
413 stars 67 forks source link

Implement getSnapshotBeforeUpdate (CPLAT-4766) #169

Closed joebingham-wk closed 5 years ago

joebingham-wk commented 5 years ago

Description:

React16 added the lifecycle method getSnapshotBeforeUpdate. We needed to add this to Component2 and begin the transition of removing older lifecycle events that will no longer work.

Changes

Testing suggestions:

Potential areas of regression:

There shouldn't be any for consumers as Component2 is new, but any code reliant upon old Component2 lifecycle events would now break.

aaronlademann-wf commented 5 years ago

QA +1