Component Memoization Support
- Ngôn ngữ chính
- TypeScript
- Star
- 3
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
## Requirements
To improve the performance of BlueRain projects, we need to figure out a way to add component memoization. This means for some components if they are passes same props, again and we expect the same output every time, we don't need to process the render again. We instead return a previous render result, that was cached during the first render.
## Approach
The simplest solution at this time seems to be as follows:
- Add a cache or memoize property for each component in registry.
- During component resolution, for every component that has cache (or memoize) property set to ture, just wrap the component in an hoc from one a memoize library (e.g. [moize](https://github.com/planttheidea/moize)
## Not Doing
- Implementing custom memoization logic
## Possible Memoize libraries
- [moize](https://github.com/planttheidea/moize)
## Useful Links
- https://medium.com/@planttheidea/memoize-react-components-33377d7ebb6c
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Issue không nêu tệp, bài kiểm thử hay điểm vào nào. Hãy bắt đầu bằng cách xác định component registry và đường dẫn component-resolution trong mã TypeScript, sau đó đánh giá registry flag được đề xuất và external memoization wrapper. Công việc được xem là hoàn tất khi cách tiếp cận được chọn hỗ trợ các component đã memoize mà không cần logic memoization tùy chỉnh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- performance
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100