a2ui-project / a2ui-project/a2ui

[FEATURE]: Rename ClientFunction to AsynchronousClientFunction in Flutter renderer

Đang mở Phù hợp với người mới
#2,066 1 bình luận 0 reaction 1 người được giao Được @gspencergoog nhận Xem trên GitHub
component: genui P2
Ngôn ngữ chính
TypeScript
Star
16.4k
Fork
1.3k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
134

Mô tả

- [X] I have searched the existing issues to make sure this feature has not already been requested.

## Is your feature request related to a problem? Please describe.

In the Flutter rendered, client-side functions come in two varieties, synchronous and asynchronous. Because of the way they were implemented, the names ended up as `SynchronousClientFunction` and `ClientFunction`.

## Describe the Proposed Solution

While they're perfectly usable this way, I believe it would be easier for new devs to adopt the API if they were renamed to `SynchronousClientFunction` and `AsynchronousClientFunction` (or `Sync-` and `Async-`).

## Describe Alternatives Considered

The main alternative would be to leave them as is, though I think devs are used to seeing Sync/Async naming conventions.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Find the Flutter renderer code where ClientFunction and SynchronousClientFunction are defined. Look for their usage across the codebase to understand the scope of the rename. After renaming, ensure all references are updated and run any existing tests for the Flutter renderer to verify the changes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
flutter, typescript
Lĩnh vực
frontend, mobile
Loại issue
Tái cấu trúc
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
65/100

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.