-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Tutorial : a better explanation of component events #4639
Tutorial : a better explanation of component events #4639
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small language fixes.
Co-Authored-By: Antony Jones <[email protected]>
Co-Authored-By: Antony Jones <[email protected]>
…uhMeuh/svelte into 04-component-event-better-explanation
Hello @antony , up :) CI has been fixed (this PR is quite old but I updated my branch from the latest changes on master and checked that everything was fine). |
Thanks! I'll see if we can get this merged soon :) |
Hi @antony ! Any news about this ? It may be a bit late now ? Thx ! |
Hi, should I close this ? |
@MeuhMeuh no, we'll get to merging it as soon as we are in a position to do so. |
* 'master' of https://github.com/sveltejs/svelte: (129 commits) -> v3.32.3 fix remove of lone :host selectors (sveltejs#5984) -> v3.32.2 update changelog fix extra invalidation with component prop binding to object property (sveltejs#5890) update css-tree@^1.1.2 (sveltejs#5958) fix :host and :global css scoping (sveltejs#5957) Tutorial : a better explanation of component events (sveltejs#4639) "What's new in Svelte" February newsletter (sveltejs#5925) Change color on 404 page (sveltejs#5932) -> v3.32.1 warn module variables are nonreactive and make them truly nonreactive (sveltejs#5847) update changelog fix: "foreign" namespace elements should still allow binding 'this' (sveltejs#5942) inline `prop_values` in `init` helper (sveltejs#5909) update changelog don't create class update functions when dependencies aren't reactive (sveltejs#5926) fix extraneous store subscription in SSR (sveltejs#5929) make `SvelteComponentDev` typings more forgiving (sveltejs#5937) make animation/transition params optional (sveltejs#5936) ...
This PR is related to this issue: #4642
This is an attempt to make the
04 - component - events
tutorial section a bit clearer about what it does on the "listener" side. The goal is to have people who go through the tutorial understand better how the event system works, as it is not covered in the next sections of the tutorial.I just added a paragraph at the end explaining the
on:message
attribute and why it is there.The next sections talk about events, but not about this specific
on:message
attribute that matters in my opinion (how it works, why it is named like this, etc).Before submitting the PR, please make sure you do the following
npm run lint
!)Tests
npm test
oryarn test
)