-
Notifications
You must be signed in to change notification settings - Fork 701
[WIP] Remove deprecated lifecycles #591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This actually should, ideally, not be a breaking change in the sense that it should not affect the functionality for any users of the library, only how the code is written and runs under the hood! |
|
@ebrillhart cool beans. I think I just pick the wrong option for that section. |
kale-stew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really great! 🎉 I've left a couple of comments and questions 🙂
| transformStyle: 'flat' | ||
| }); | ||
|
|
||
| function buildSlideReference(props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could I ask why you opted to move this method outside the component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kale-stew getDerviedStateFromProps does not have access to the component instance. Since buildSlideReference didn't have any component instances in the method itself, I opted to take it out of the class and use it as a regular method that the class can use.
…ic-wapper.js file
…ponent-playground.js file
ceeba84 to
56a907b
Compare
parkerziegler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On first glance this looks good @ElreyB! See my one comment about the componentDidUpdate signature. Once we get that up, I'll pull locally and test.
331ee3b to
99407c3
Compare
|
@ebrillhart @kale-stew I symlinked this locally against one of my Spectacle presentations and it worked as expected. I also ran the demo locally after fresh install and all seemed normal there. I think we are likely good for a merge. It may be worth noting in the CHANGELOG that users will need to ensure they have React and ReactDOM ^16.3.1 as their local dependency (earliest version with stable |
|
I will merge this and make a note of dependency stuff in the release notes for next release! |
Fixes # (issue) #540
Type of Change
Please delete options that are not relevant.
How Has This Been Tested? (using unit testing)
Checklist: (Feel free to delete this section upon completion)
yarn prettier-fix && yarn lint)yarn test)