mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +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