8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995a00d commit faa3ee2Copy full SHA for faa3ee2
README.md
@@ -304,15 +304,15 @@ libraries like [React](http://facebook.github.io/react/) or to simulate
304
305
```javascript
306
var data = Immutable.fromJS({ a: { b: { c: 1 } } });
307
-var cursor 8E3A = data.cursor(['a', 'b', 'c'], newData => {
+var cursor = data.cursor(['a', 'b'], newData => {
308
data = newData;
309
});
310
311
// ... elsewhere ...
312
313
-cursor.deref(); // 1
314
-cursor = cursor.update(x => x + 1);
315
-cursor.deref(); // 2
+cursor.get('c'); // 1
+cursor = cursor.update('c', x => x + 1);
+cursor.get('c'); // 2
316
317
// ... back to data ...
318
0 commit comments