This repository was archived by the owner on Aug 5, 2025. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork238
docs: Update README.md#520
Merged
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
docs: 04-updating-arrays-and-objects, add `let obj = { foo: { bar: 'old' } };` for more clarity@matzar is attempting to deploy a commit to theSvelte Team onVercel. A member of the Team first needs toauthorize it. |
content/tutorial/01-svelte/02-reactivity/04-updating-arrays-and-objects/README.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
content/tutorial/01-svelte/02-reactivity/04-updating-arrays-and-objects/README.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Rich-Harris approved these changesDec 15, 2023
Member
Rich-Harris commentedDec 15, 2023
thanks! |
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
Docs: 04-updating-arrays-and-objects
Ensured clarity in the example code by defining the
objobject. This ensures that readers understand the context and structure of the object being modified in the reactivity example.Because it is possible to trigger reactivity by referencing
foo.barin the template instead ofobj.foo.bar, the following will trigger reactivity:However, the next example will not, and will require
obj = objreassignment:In this case,
{obj.foo.bar}does not trigger reactivity whenfoo.baris updated, unlessobjis reassigned (withobj = obj).By including the definition of the
objobject, we aim to elucidate the structure and context in which the reactivity example operates, ensuring a clearer understanding for the reader.