This website requires JavaScript.
Explore
Discord Server
Help
Sign in
cswimr
/
revite
Watch
1
Star
0
Fork
You've already forked revite
0
mirror of
https://github.com/revoltchat/revite.git
synced
2024-11-27 01:20:57 -05:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
064f223c78
revite
/
src
/
lib
/
defer.ts
2 lines
60 B
TypeScript
Raw
Normal View
History
Unescape
Escape
Optimise re-renders when scrolling / updating messages.
2021-06-23 11:14:46 -04:00
export
const
defer
=
(
cb
:
(
)
=
>
void
)
=
>
setTimeout
(
cb
,
0
)
;
Reference in a new issue
Copy permalink