iT邦幫忙

第 11 屆 iThome 鐵人賽

DAY 23
1
Modern Web

Angular 8 從推坑到放棄系列 第 23

[Day 22] 什麼是ngrx

簡單講就是
NgRx = Redux + RxJS + Angular
但是 Redux 又是什麼

我需要用 NgRx嗎

你不應該使用 NgRx

到底要不要用 NgrX 基本上有一個所謂的 SHARI 準則:

  • Shared: state that is accessed by many components and services.

  • Hydrated: state that is persisted and rehydrated from external storage.

  • Available: state that needs to be available when re-entering routes.

  • Retrieved: state that must be retrieved with a side-effect.

  • Impacted: state that is impacted by actions from other sources.

參考

  1. NgRx.io
  2. 你或許看過四不像,但是你聽過四很像嗎?:NgRx

上一篇
[Day 21] 介紹 Pipe
下一篇
[Day 23]最佳化 Angular Application
系列文
Angular 8 從推坑到放棄30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言