Buckets:
| let nav: ((href: string) => void) | undefined | |
| export const setNavigate = (fn: (href: string) => void) => { | |
| nav = fn | |
| } | |
| export const handleNotificationClick = (href?: string) => { | |
| window.focus() | |
| if (!href) return | |
| if (nav) return nav(href) | |
| console.warn("notification-click: navigate function not set, falling back to window.location.assign") | |
| window.location.assign(href) | |
| } | |
Xet Storage Details
- Size:
- 384 Bytes
- Xet hash:
- 0cb3b6e6e2b777d0e0776cce259b8b5697bd0428773d6bfad14cfe3b52693490
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.