Wrapping localStorage in a writeable computed observable fails to bust the cache
问题 I am new to KnockoutJS and am curious to see if this is possible. I am trying to wrap a local storage object in a writeable computed so that I can take advantage of the auto-binding goodness of KnockoutJS. However, the "read" operation doesn't reference any observables - consequently the initial value never gets updated: <select data-bind="foreach: logLevelsArray, value: currentLogLevel"> <option data-bind="attr: { value: $index() }, text: $data"></option> </select> _.extend