next-typescript
next-typescript copied to clipboard
Updating Mux video component
Updates on mux-video.tsx:
- Supports lazy loading of hls.js due to some browsers supporting it natively
- Supports video lazy loading
- Supports video lazy loading intersection observer config
Updates on use-intersection-observer.ts:
- Encapsulates and exports a utility to create observers outside the hook context
- Unobserving elements that are only triggered once
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/basement/next-typescript/86wDyVTS7Vx5sP6uiMXxj3mPnFui
✅ Preview: https://next-typescript-git-mux-video-improvements-basement.vercel.app
@matiasperz Otra cosita: acá me gustaría que devuelva directamente el boolean, tipo return [ref, inView].
Nos pasó en MrBeast q habíamos asumido q devolvía directamente el inView, agarramos el objeto entero, y como el objeto da truthy teníamos un bug.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| next-typescript | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 12, 2023 2:21pm |