coryhouse / coryhouse/react-restaurant-scriptpro

Memoize filtered/searched list with useMemo

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
enhancement phase-4-search-filter
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Goal
Wrap the filtered/searched list computation in `useMemo`. The point is to teach **when** memoization actually pays off — not to memo everything by reflex.

## Acceptance criteria
- [ ] Filtered list is computed inside `useMemo` keyed on foods, query, and selected tag
- [ ] PR description (or commit message) captures the rule of thumb on when `useMemo` is worth it
- [ ] App behavior unchanged

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.