Skip to content
Back to skills

Rerender Dependencies

ASecurity

Imported skill rerender_dependencies from vercel

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchreact

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add bitwikiorg/skills.md --skill rerender_dependencies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rerender Dependencies?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rerender Dependencies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bitwikiorg-rerender-dependencies/badge)](https://www.skillsdirectory.com/skills/bitwikiorg-rerender-dependencies)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Imported skill rerender_dependencies from vercel
name: rerender_dependencies
signature: 17eb5830956fb56486fd3cfc7431f5849d39751730c05ad9e77dd4f0c27169c5
source: /a0/tmp/skills_research/vercel/skills/react-best-practices/rules/rerender-dependencies.md
---

---
title: Narrow Effect Dependencies
impact: LOW
impactDescription: minimizes effect re-runs
tags: rerender, useEffect, dependencies, optimization
---

## Narrow Effect Dependencies

Specify primitive dependencies instead of objects to minimize effect re-runs.

**Incorrect (re-runs on any user field change):**

```tsx
useEffect(() => {
  console.log(user.id)
}, [user])
```

**Correct (re-runs only when id changes):**

```tsx
useEffect(() => {
  console.log(user.id)
}, [user.id])
```

**For derived state, compute outside effect:**

```tsx
// Incorrect: runs on width=767, 766, 765...
useEffect(() => {
  if (width < 768) {
    enableMobileMode()
  }
}, [width])

// Correct: runs only on boolean transition
const isMobile = width < 768
useEffect(() => {
  if (isMobile) {
    enableMobileMode()
  }
}, [isMobile])
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…