I think I found a bug...
Just updated to the new Breeze.JS v1.5 and now I'm getting the following error:
Error: Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.
at dependentObservable (http://localhost:54663/Scripts/knockout-3.2.0.debug.js:1712:17)
at setDpValueSimple (http://localhost:54663/Scripts/breeze.debug.js:5083:5)
at defaultPropertyInterceptor (http://localhost:54663/Scripts/breeze.debug.js:4945:13)
at write (http://localhost:54663/Scripts/breeze.debug.js:16415:25)
at dependentObservable (http://localhost:54663/Scripts/knockout-3.2.0.debug.js:1710:17)
at proto.setProperty (http://localhost:54663/Scripts/breeze.debug.js:16454:13)
at Anonymous function (http://localhost:54663/Scripts/breeze.debug.js:7918:21)
at proto._updateTargetFromRaw (http://localhost:54663/Scripts/breeze.debug.js:7891:9)
at updateEntity (http://localhost:54663/Scripts/breeze.debug.js:14782:9)
at mergeEntity (http://localhost:54663/Scripts/breeze.debug.js:14755:13)
Any ideas the best way to fix this real quick?
UPDATE: Here's my proposed fix at line 5083 in breeze.debug.js from this:
rawAccessorFn(newValue);
to this:
if (ko.isWriteableObservable(rawAccessorFn))
rawAccessorFn(newValue);
Not sure of any underlying issues with this fix but it works for me :)
UPDATE 2: The Fix is NOW at line 5167 in breeze.debug.js v1.5.1
UPDATE 3: The Fix is NOW at line 5191 in breeze.debug.js v1.5.2
Can we get this FIX implemented in the source?