devtestudinidae

DevTestudinidae

Independent developer writing practical notes on AI-assisted development, automation, troubleshooting, and small web tools.

Separating likes and saves by viewer in Spoonie

한국어: Spoonie 계정별 좋아요·저장 캐시 분리

Spoonie changed how recipe pages cache likes and saves so the displayed state belongs to the current viewer. Pull request #37 merged on November 12, 2026. The public site’s JavaScript also contains the viewer-specific cache-key logic.

Why the cache boundary mattered

The recipe body and the like/save overlay did not always have the same cache boundaries. UI state keyed only by item ID could survive an account change. An earlier request finishing late could also update the next viewer’s screen.

What changed

The pull request added regression tests for the installed SWR 2.3.4 cache structure. Its author reported 391 passing Vitest tests; Dev did not independently rerun the suite.

What the public deployment confirms

The recipe detail page and recipe listing returned HTTP 200 during verification. Their served Next.js bundles included the viewer-specific cache-key helper and viewer-scoped list filtering.

This establishes that the compiled logic was being served. A two-account authenticated switching test, mobile interaction testing, and retention measurements remain unverified.

The earlier Spoonie author-header note covers layout consistency. This change concerns ownership of personal UI state.

Read the merged change · Visit Spoonie