-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix: Fix stems downloads on mobile web (#3382)
- Loading branch information
1 parent
ff8727d
commit f143708
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
apps/audius-client/packages/web/patches/react-lottie+1.2.3.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/node_modules/react-lottie/dist/index.js b/node_modules/react-lottie/dist/index.js | ||
index b9015a6..8d37a73 100644 | ||
--- a/node_modules/react-lottie/dist/index.js | ||
+++ b/node_modules/react-lottie/dist/index.js | ||
@@ -100,8 +100,10 @@ var Lottie = function (_React$Component) { | ||
value: function componentWillUpdate(nextProps /* , nextState */) { | ||
/* Recreate the animation handle if the data is changed */ | ||
if (this.options.animationData !== nextProps.options.animationData) { | ||
- this.deRegisterEvents(this.props.eventListeners); | ||
- this.destroy(); | ||
+ if (this.anim !== null) { | ||
+ this.deRegisterEvents(this.props.eventListeners); | ||
+ this.destroy(); | ||
+ } | ||
this.options = (0, _extends3.default)({}, this.options, nextProps.options); | ||
this.anim = _lottieWeb2.default.loadAnimation(this.options); | ||
this.registerEvents(nextProps.eventListeners); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters