Skip to content
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

Deck: Add onLoad callback #2042

Merged
merged 2 commits into from
Jul 12, 2018
Merged

Deck: Add onLoad callback #2042

merged 2 commits into from
Jul 12, 2018

Conversation

1chandu
Copy link
Contributor

@1chandu 1chandu commented Jul 12, 2018

For #2041
NOTE : I will cherry-pick this to 6.0

Background

Add onLoad call back.
Replace the onResize hack in viewport-tranisionts example with onLoad callback.

Change List

  • Deck: Add onLoad callback

@@ -64,12 +64,8 @@ class Root extends Component {
});
}

// TODO - this is a hack. Deck does not have an onLoad callback
_onResize() {
if (!this.state.loaded) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove state?

@1chandu 1chandu merged commit e9ef746 into master Jul 12, 2018
@1chandu 1chandu deleted the DeckOnLoad branch July 12, 2018 21:13
Pessimistress pushed a commit that referenced this pull request Jul 13, 2018
* Deck: Add onLoad callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants