在有人讀取之前,甚麼都不會被計算。視圖透過讀取自己的屬性來渲染;每個屬性再讀取它需要的東西;依賴鏈就從這些讀取中自行組裝起來。沒有訂閱要宣告,也沒有 watch 要註冊:讀取本身就是訂閱。1$my_profile$mol_view2 sub /3<= Name $mol_view4 sub /<= name \1namespace $.$${2export class $my_profileextends$.$my_profile{3@ $mol_mem4user(){5return this.$.$mol_fetch.json('https://api.example.com/me')as{name:string}6}7name(){8return this.user().name9}10}11}渲染 Name 會讀取 name(),name() 讀取 user(),user() 發出網絡請求。沒有人告訴視圖有這個請求,也沒有人告訴請求有這個視圖。當 user() 變化時,讀取過它的一切都會重新計算,別的甚麼都不會。