Skip to content

Load as little as possible in index.js for the skinner#11959

Merged
turt2live merged 1 commit intodevelopfrom
travis/fix-skinning
Jan 21, 2020
Merged

Load as little as possible in index.js for the skinner#11959
turt2live merged 1 commit intodevelopfrom
travis/fix-skinning

Conversation

@turt2live
Copy link
Copy Markdown
Member

Imports are optimized to be concurrent/async by webpack, which means that when the old index.js referenced the Lifecycle from the react-sdk it caused the app to explode. This is because in another branch the Lifecycle references a class member of a skinnable component, leading to the skinner complaining that the skin hasn't been loaded.

To work around this, we've shoved all the app stuff to a new app.js file, leaving just the skinning and some early bootstrap work in the index.js

For #11871

Imports are optimized to be concurrent/async by webpack, which means that when the old index.js referenced the Lifecycle from the react-sdk it caused the app to explode. This is because in another branch the Lifecycle references a class member of a skinnable component, leading to the skinner complaining that the skin hasn't been loaded.

To work around this, we've shoved all the app stuff to a new app.js file, leaving just the skinning and some early bootstrap work in the index.js
@turt2live turt2live merged commit 3036bab into develop Jan 21, 2020
@turt2live turt2live deleted the travis/fix-skinning branch January 21, 2020 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants