Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Derive input-based state with computed()

Đã đóng
#562 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

@bracyw đang làm issue này rồi.

Từ ngày 29/3/2026.

  • #828 của @bracyw — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

by: ai dev work frontend
What

Ten components read inputs in ngOnInit to compute local state, so that state goes stale when the parent changes the input. Switch them to input() and computed() so derived values stay reactive.

Requirements
  • Switch, HStack, CircularPercentage, BatteryPercentage, HalfGauge, Graph, DoubleLineGraph, PieChart, SidebarCard and GraphSidebarMobile derive their state with computed() from input()
  • ngOnInit removed where it only computed derived state
  • Templates call the signal getters
  • No rendering regressions; lint, tests and build pass
Notes

This is a subset of #193, so land it first.


Generated by Claude Code

Ngôn ngữ chính
TypeScript
Star
5
Fork
1
Merge trung bình
3 ngày 16 giờ
Pull request đã merge (30 ngày)
38

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Northeastern-Electric-Racing/Argos

Tất cả issue của Northeastern-Electric-Racing/Argos

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.