coryhouse / coryhouse/react-restaurant-scriptpro
Memoize filtered/searched list with useMemo
Open
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.