Skip to content

fix(tui): stabilize now via useMemo to prevent non-deterministic re-renders#714

Merged
JeremyDev87 merged 1 commit intomasterfrom
fix/stabilize-now-usememo-698
Mar 19, 2026
Merged

fix(tui): stabilize now via useMemo to prevent non-deterministic re-renders#714
JeremyDev87 merged 1 commit intomasterfrom
fix/stabilize-now-usememo-698

Conversation

@JeremyDev87
Copy link
Owner

Summary

  • Replace Date.now() in DashboardApp render body with useMemo(() => Date.now(), [tick]) to stabilize now across non-tick re-renders
  • Add test verifying now stays consistent when tick hasn't changed

Test plan

  • New test: memoizes now based on tick to avoid non-deterministic re-renders
  • All 4811 existing tests pass (0 regressions)
  • Full CI: lint, format, typecheck, test:coverage, circular, build — all pass

Closes #698

…enders

- Replace Date.now() in render body with useMemo(() => Date.now(), [tick])
- Add test verifying now stays stable across non-tick re-renders

Closes #698
@JeremyDev87 JeremyDev87 added the bug Something isn't working label Mar 19, 2026
@vercel
Copy link

vercel bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Mar 19, 2026 8:22am

@JeremyDev87 JeremyDev87 self-assigned this Mar 19, 2026
@JeremyDev87 JeremyDev87 merged commit be4f21b into master Mar 19, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the fix/stabilize-now-usememo-698 branch March 19, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(tui): DashboardApp calls Date.now() in render body — non-deterministic re-renders

1 participant