1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-02 16:08:31 +00:00
* Fixed: Performance regression due to WYSIWYG emote preview injection. This may result in the feature working less effectively while a better solution is found.
This commit is contained in:
SirStendec 2023-03-31 23:15:49 -04:00
parent 880e80388a
commit 3d4b4f6225
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "frankerfacez", "name": "frankerfacez",
"author": "Dan Salvato LLC", "author": "Dan Salvato LLC",
"version": "4.45.0", "version": "4.45.1",
"description": "FrankerFaceZ is a Twitch enhancement suite.", "description": "FrankerFaceZ is a Twitch enhancement suite.",
"private": true, "private": true,
"license": "Apache-2.0", "license": "Apache-2.0",

View file

@ -532,8 +532,9 @@ export default class Input extends Module {
else else
return; return;
// Make a copy, so that React reacts. // TODO: Somehow update other React state to deal with our
this.props.emotes = [...this.props.emotes]; // injected changes. Making a shallow copy of the array
// runs too frequently.
} }
inst.componentDidUpdate = function(props, ...args) { inst.componentDidUpdate = function(props, ...args) {