feat: Remove mutable props concept

Đang mở
#5,644 1 bình luận 4 reaction 1 người được giao Xem trên GitHub

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

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

Từ ngày 9/4/2024.

Đánh giá

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

Mô tả

triage
Prerequisites
Describe the Feature Request

As it stands now, prop being mutable doesn't do anything other than suppress a warning about modifying a prop.
Is there a reason that warning was put in?
This seems like a needless behavior that only worsens DX, and makes testing components harder.

Describe the Use Case
  • Do two-way sync of props with external store
  • Modify props in tests
  • Reset prop values on hot-module-replacement
Describe Preferred Solution

Remove the useless warning

Describe Alternatives

OR deprecate the concept of non-mutable props
OR add a stencil config option to make all props mutable

Related Code

No response

Additional Information

Related to https://github.com/ionic-team/stencil/issues/3490

Ngôn ngữ chính
TypeScript
Star
13.2k
Fork
865
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
29

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

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 stenciljs/core

Tất cả issue của stenciljs/core

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.