- Architecting Angular Applications with Redux,RxJS,and NgRx
- Christoffer Noring
- 198字
- 2021-08-27 19:56:20
Cleaning up the store
There are improvements we can make to on the store. There is no need to write all the code we do currently. In fact, there are libraries out there that do a better job of handling certain functionality.
Before we apply all those changes we have in mind, let's recap what our store can do and what features still need to be in place after the cleanup work.
Let's remind ourselves, what our store is capable of so far:
- Handles state changes: It handles the state changes; the store is able to change the state regardless of whether it is creating, updating, listing, or removing state.
- Subscribable: It lets you subscribe to it; it's important for the store to have a subscription functionality so a view, for example, can listen to the store's state when it changes. A suitable reaction by the view is, for example, rerendering based on new data.
- Can communicate a state change: It can send an event that its state has been changed; this goes together with being able to subscribe to the store, but this is the very act of actually notifying a listener that a state has changed.
推薦閱讀
- 物聯(lián)網(wǎng)標(biāo)準(zhǔn)化指南
- 解析QUIC/HTTP3:未來互聯(lián)網(wǎng)的基石
- 自動(dòng)駕駛網(wǎng)絡(luò):自智時(shí)代的網(wǎng)絡(luò)架構(gòu)
- 物聯(lián)網(wǎng)識(shí)別技術(shù)
- Learning QGIS 2.0
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- Practical Web Design
- React:Cross-Platform Application Development with React Native
- 6G無線網(wǎng)絡(luò)空口關(guān)鍵技術(shù)
- 物聯(lián)網(wǎng)工程概論
- 無線傳感器網(wǎng)絡(luò)定位技術(shù)
- RestKit for iOS
- 物聯(lián)網(wǎng),So Easy!
- 從物聯(lián)到萬聯(lián):Node.js與樹莓派萬維物聯(lián)網(wǎng)構(gòu)建實(shí)戰(zhàn)
- ReasonML Quick Start Guide