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

removeScene does not remove the selector from Compositor

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu từ FamousEngine.removeScene và theo dõi cách Compositor theo dõi các selector cũng như cách Commands được phân phối. Xác minh rằng đường dẫn xóa giải phóng các tài nguyên hiện có như ElementCache, sau đó xác nhận rằng việc xóa và tạo lại một Scene cho cùng selector sẽ tạo ra một Context mới.

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

Mô tả

help wanted

in FamousEngine.removeScene, there is no reference to the Compositor. For embedded uses (like in an existing Angular app), the selector may come and go as the user navigates the app. Therefore it is important to be able to destroy and recreate the Scene as necessary.

Currently, the Compositor will never create a new Context for a selector that's already been used. When the Scene is removed from the FamousEngine, it also needs to remove the selector from the Compositor. When a Scene / selector is removed from the Compositor, the Compositor should take care of cleaning-up and releasing any existing resources (ie. ElementCache).

This will probably require an additional command type in Commands which is handled by the Compositor directly.

Ngôn ngữ chính
JavaScript
Star
1.7k
Fork
249
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 Famous/engine

Tất cả issue của Famous/engine

Issue tương tự

Thêm issue về JavaScript

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.