Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commitda3e539

Browse files
docs: Update README.md (#520)
* Update README.mddocs: 04-updating-arrays-and-objects, add `let obj = { foo: { bar: 'old' } };` for more clarity* Apply suggestions from code review---------Co-authored-by: Rich Harris <hello@rich-harris.dev>
1 parent511d1b2 commitda3e539

File tree

1 file changed

+2
-1
lines changed
  • content/tutorial/01-svelte/02-reactivity/04-updating-arrays-and-objects

1 file changed

+2
-1
lines changed

‎content/tutorial/01-svelte/02-reactivity/04-updating-arrays-and-objects/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ A simple rule of thumb: the name of the updated variable must appear on the left
3838

3939
```js
4040
/// no-file
41+
constobj= { foo: { bar:1 } };
4142
constfoo=obj.foo;
42-
foo.bar='baz';
43+
foo.bar=2;
4344
```
4445

4546
...won't trigger reactivity on`obj.foo.bar`, unless you follow it up with`obj = obj`.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp