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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve reliability of reactions-avatar #4858

Merged
merged 1 commit into from
Oct 4, 2021
Merged

Improve reliability of reactions-avatar #4858

merged 1 commit into from
Oct 4, 2021

Conversation

cheap-glitch
Copy link
Member

Fixes #4845
Fixes #4591

Test URLs

Screenshot

capture-1633251437.mp4

@fregante feel free to close this if it's not the right solution. I just don't get why onReplacedElement was used in the first place, when the tracked element ins't even used in the callback 馃し

@yakov116 yakov116 added the bug label Oct 3, 2021
@fregante
Copy link
Member

fregante commented Oct 3, 2021

@fregante feel free to close this if it's not the right solution. I just don't get why onReplacedElement was used in the first place, when the tracked element ins't even used in the callback 馃し

onReplacedElement is just meant to track an element continuously. If the tracked element is gone, maybe init needs to run again.

Does the current solution works permanently? i.e. does it still work if add/remove multiple reactions, across windows?

@cheap-glitch
Copy link
Member Author

cheap-glitch commented Oct 4, 2021

does it still work if add/remove multiple reactions, across windows?

Yes

@fregante fregante changed the title Fix reactions-avatar feature Improve reliability of reactions-avatar Oct 4, 2021
@fregante fregante merged commit c1f3484 into refined-github:main Oct 4, 2021
@fregante
Copy link
Member

fregante commented Oct 4, 2021

Neat! I didn't realized it also fixed #4591

@cheap-glitch cheap-glitch deleted the fix-reactions-avatar branch October 4, 2021 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants