aidenybai / aidenybai/spot

React Review Audit

Abierto
#1 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
1
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Score: 99/100** · 0 errors · 2 warnings

Copy as prompt

```text
Fix the following React Review diagnostics in my codebase.

## Warnings (2)

1. [warning] client-passive-event-listeners — src/live.jsx:92
"touchmove" listener without { passive: true } — blocks scrolling performance. Only add { passive: true } if the handler does NOT call event.preventDefault() (passive listeners silently ignore preventDefault())

2. [warning] js-batch-dom-css — src/live.jsx:103
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
```

---

### ⚠️ Warnings (2)

**`client-passive-event-listeners`**

"touchmove" listener without { passive: true } — blocks scrolling performance. Only add { passive: true } if the handler does NOT call event.preventDefault() (passive listeners silently ignore preventDefault())

> Add `{ passive: true }` as the third argument: `addEventListener('scroll', handler, { passive: true })`. Only do this if the handler does NOT call `event.preventDefault()` — passive listeners silently ignore `preventDefault()`, which breaks features like pull-to-refresh suppression, custom gestures, and nested-scroll containment.

[`src/live.jsx:92`](https://github.com/aidenybai/spot/blob/019a5d531dd1eed00579ff4ce06f105d52f71187/src/live.jsx#L92)

**`js-batch-dom-css`**

Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows

> Batch DOM/CSS reads and writes — interleaving them inside a loop causes layout thrashing. Read first, then write

[`src/live.jsx:103`](https://github.com/aidenybai/spot/blob/019a5d531dd1eed00579ff4ce06f105d52f71187/src/live.jsx#L103)

---

Last scored May 18, 2026 at 10:18 AM UTC. Maintained by [React Review](https://github.com/millionco/react-review).

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.