Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wording to include prop behaviour #4460

Merged
merged 86 commits into from
Feb 28, 2020
Merged
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
e1d2cfb
Update wording to include prop behaviour
jesseskinner Feb 25, 2020
e496e81
Change 'default value' to 'initial value' to set expectations about b…
jesseskinner Feb 27, 2020
bfe1b2c
Update site/content/docs/01-component-format.md
jesseskinner Feb 27, 2020
14b712c
fix actions having no access to parent nodes (#4252)
tanhauhau Jan 11, 2020
3a5df9c
fix hydrating each else (#4253)
tanhauhau Jan 12, 2020
d674ca4
SSR should only render one <title> (#4250)
tanhauhau Jan 13, 2020
48f0212
fix stringifying of attributes in presence of spread in SSR (#4247)
jesseskinner Jan 13, 2020
e7d9710
update changelog
Conduitry Jan 13, 2020
abcdee5
fix hydrating <head> (#4082)
tanhauhau Jan 13, 2020
379a58a
-> v3.17.0
Conduitry Jan 13, 2020
6d073e2
only attach SSR <head> markers when hydratable: true (#4260)
Conduitry Jan 14, 2020
726d5fc
-> v3.17.1
Conduitry Jan 14, 2020
cc4bd0e
oops
Conduitry Jan 14, 2020
9b90b2e
fix allow let scoped to root element (#4266)
tanhauhau Jan 16, 2020
f7dd9e8
Add more globals
Jan 17, 2020
1769ed1
update changelog
Conduitry Jan 17, 2020
3fc36ae
disallow binding variables declared in await and catch
tanhauhau Jan 17, 2020
f87b4c5
update changelog
Conduitry Jan 17, 2020
273b88b
apply event modifiers to <svelte:body> events (#4279)
Conduitry Jan 17, 2020
6b77eb6
fix awaited expressions that need parentheses (#4283)
Conduitry Jan 18, 2020
6f65236
fix '~=' and class selectors with arbitrary whitespace (#4286)
Conduitry Jan 19, 2020
d201cd7
failing test
Conduitry Jan 20, 2020
3e2f4fb
fix removing attributes during hydration (#1733)
Conduitry Jan 20, 2020
6f6cfdb
update changelog
Conduitry Jan 20, 2020
011b8bc
preserve js comments where possible (#4293)
Conduitry Jan 21, 2020
09467f3
-> v3.17.2
Conduitry Jan 21, 2020
3e08146
fix nested block not reactive (#4294)
tanhauhau Jan 22, 2020
4d3b9d7
fix deriving from RxJS observables (#4300)
Conduitry Jan 22, 2020
6bd3739
disallow duplicate each keys in dev mode (#4303)
Conduitry Jan 22, 2020
68c030f
site: fix a couple absolute links
Conduitry Jan 23, 2020
b448765
site: add warning to Dockerfile about .dockerignore
Conduitry Jan 23, 2020
8096a6b
fix hydration of <title> (#4311)
Conduitry Jan 23, 2020
25eb804
-> v3.17.3
Conduitry Jan 23, 2020
a648558
make autosubscribing to a nullish store a no-op (#4304)
Conduitry Jan 23, 2020
9605a75
fix changelog
Conduitry Jan 23, 2020
24c319f
[Internals] Improve unit tests (#4262)
himynameisdave Jan 24, 2020
2ff38d4
Internals: Scheduler: Fix infinite loop in flush (#4316)
Jan 25, 2020
bc60092
update changelog
Conduitry Jan 25, 2020
8aa930d
-> v3.18.0
Conduitry Jan 25, 2020
0202608
fix code generation with adjacent inline and block comments (#4327)
Conduitry Jan 27, 2020
c278b10
site: Improve open graph images for website (#4328)
Wolfr Jan 27, 2020
18b65f4
site: update Makefile to work without global gcloud project setting
Conduitry Jan 27, 2020
f17db4e
site: Remove WIP message, but still reference the chat room. (#4329)
Wolfr Jan 27, 2020
bd9975d
fix detection of unused partially global CSS selectors (#4332)
Conduitry Jan 27, 2020
a76e177
-> v3.18.1
Conduitry Jan 27, 2020
b68e54c
Remove npm module size badge from Readme
antony Jan 28, 2020
64b5508
site: update Makefile as 'gcloud beta' is no longer necessary
Conduitry Jan 28, 2020
dcb3031
site: use absolute href to blog feed (#4342)
Conduitry Jan 30, 2020
168c29a
disallow simultaneous foo / {foo} / bind:foo (#4343)
Conduitry Jan 30, 2020
60c1106
site: clarify preserveWhitespace (#4341)
Conduitry Jan 31, 2020
af0e7aa
fix binding to module-level variables (#4352)
Conduitry Feb 3, 2020
1276f69
fix arrow function precedence (#4385)
Conduitry Feb 8, 2020
ee1b0dd
chore: fix .eslintignore and remove .prettierrc (#4378)
kaisermann Feb 8, 2020
5732439
npm audit fix related to https-proxy-agent (#4359)
christianheine Feb 8, 2020
516b75b
avoid using .shift() in flush() (#4356)
kesne Feb 8, 2020
239adcc
update changelog
Conduitry Feb 8, 2020
526f350
better error messages for else, elseif, then, catch with unclosed tag…
tanhauhau Feb 9, 2020
4152175
fix handling of reserved keywords when parsing (#4390)
Conduitry Feb 9, 2020
29e4552
fix tests
Conduitry Feb 9, 2020
6927a72
fix invalidation in ++foo.bar (#4395)
Conduitry Feb 9, 2020
f49d4e5
fix event handlers that are dynamic via reactive declarations or stor…
Conduitry Feb 9, 2020
a4ffda6
-> v3.18.2
Conduitry Feb 9, 2020
b5c3e38
fix indirect bindings on elements with spreads (#4398)
Conduitry Feb 12, 2020
abdf0f6
docs: add await in front of preprocess examples (#4404)
PKlknr Feb 12, 2020
4a02e42
perform dirty check before updating keyed each blocks (#4413)
tanhauhau Feb 15, 2020
e546e02
warn if component is expected to be reactive (#4409)
tanhauhau Feb 15, 2020
f4226c6
blog: svelte-for-new-developers: list commands for Windows (#4391)
lewoudar Feb 15, 2020
a843078
Log warnings in svelte/register when in dev-mode (#4365)
PKlknr Feb 18, 2020
839eb6c
update changelog
Conduitry Feb 18, 2020
058ff1a
implement Dev mode validation of {#each} block argument (#4419)
swyxio Feb 18, 2020
2ef241a
update changelog
Conduitry Feb 18, 2020
ef84144
docs: reword to avoid "outroing" (#4434)
jesseskinner Feb 20, 2020
8b3d0f5
Remove CI badge (#4438)
Rich-Harris Feb 21, 2020
b619ceb
site: fix loading REPL with filename containing multiple '.'s (#4441)
AlexandreCantin Feb 23, 2020
4f12ca2
site: clearer examples for <slot let:name> (#4125)
mdempsky Feb 23, 2020
fc774bd
make $capture_state/$inject_state act on entire state (#3822)
rixo Feb 23, 2020
419c46b
update changelog
Conduitry Feb 23, 2020
2dd8486
-> v3.19.0
Conduitry Feb 23, 2020
d531657
fix dev mode each block validation when using strings (#4451)
Conduitry Feb 23, 2020
4fb0d7a
deconflict `value` parameter in contextual bindings (#4452)
Conduitry Feb 23, 2020
fb8cb5d
don't treat $$-names as stores during invalidation (#4453)
Conduitry Feb 23, 2020
042b731
-> v3.19.1
Conduitry Feb 23, 2020
8897174
Update wording to include prop behaviour
jesseskinner Feb 25, 2020
0cee6d6
Change 'default value' to 'initial value' to set expectations about b…
jesseskinner Feb 27, 2020
956830d
Updated wording to avoid ambiguity in default initial value behaviour…
jesseskinner Feb 27, 2020
6ebf4b2
Changed 'initial value' to 'default initial value' in a few places fo…
jesseskinner Feb 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions site/content/docs/01-component-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ Svelte uses the `export` keyword to mark a variable declaration as a *property*

---

You can specify a default value, which will be used if the component's consumer doesn't specify a prop.
You can specify a default initial value for a prop. It will be used if the component's consumer doesn't specify the prop on the component (or if its initial value is `undefined`) when instantiating the component. Note that whenever a prop is removed by the consumer, its value is set to `undefined` rather than the initial value.

In development mode (see the [compiler options](docs#svelte_compile)), a warning will be printed if no default is provided and the consumer does not specify a value. To squelch this warning, ensure that a default is specified, even if it is `undefined`.
In development mode (see the [compiler options](docs#svelte_compile)), a warning will be printed if no default initial value is provided and the consumer does not specify a value. To squelch this warning, ensure that a default initial value is specified, even if it is `undefined`.

```html
<script>
export let bar = 'optional default value';
export let bar = 'optional default initial value';
export let baz = undefined;
</script>
```
Expand Down