mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-04-28 08:10:36 +00:00
Optimise re-renders when scrolling / updating messages.
This commit is contained in:
@@ -1,3 +1 @@
|
||||
export function defer(cb: () => void) {
|
||||
setTimeout(cb, 0);
|
||||
}
|
||||
export const defer = (cb: () => void) => setTimeout(cb, 0);
|
||||
|
||||
Reference in New Issue
Block a user