inyong-e / mini-ios-todo Goto Github PK
View Code? Open in Web Editor NEWios의 미리알림 앱을 유사하게 구현한 Todo List-리팩토링 중
ios의 미리알림 앱을 유사하게 구현한 Todo List-리팩토링 중
현재 Todo List 컴포넌트에서 엔트리를 삭제할 때, 투두 그룹에서 선택된 현재 투두, 그리고 해당 투두의 선택된 엔트리를 찾는 O(n^2) 의 동작이 발생합니다.
원인
TodoList의 props로 투두 데이터 전체를 내려주는 로직으로 되어 있음.
사유: 검색어에 의한 결과 값을 투두 전체 범위로 검색 후 보여주다보니 전체를 내려주어야 된다고 판단.
해결 방법
검색어에 의한 결과 화면을 TodoList 컴포넌트와 분리하여 따로 보여주는 로직으로 수정한다.
테스트 입니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.