mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 18:08:05 +01:00
Improve performance when rendering many emoji
This commit is contained in:
@@ -96,3 +96,19 @@ story.add('Custom Text Render', () => {
|
||||
|
||||
return <Emojify {...props} />;
|
||||
});
|
||||
|
||||
story.add('Tens of thousands of emoji', () => {
|
||||
const props = createProps({
|
||||
text: '💅'.repeat(40000),
|
||||
});
|
||||
|
||||
return <Emojify {...props} />;
|
||||
});
|
||||
|
||||
story.add('Tens of thousands of emoji, interspersed with text', () => {
|
||||
const props = createProps({
|
||||
text: '💅 hi '.repeat(40000),
|
||||
});
|
||||
|
||||
return <Emojify {...props} />;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user