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

Tutorial : a better explanation of component events #4639

Merged

Conversation

MeuhMeuh
Copy link
Contributor

@MeuhMeuh MeuhMeuh commented Apr 6, 2020

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

  • It's really useful if your PR relates to an outstanding issue, so please reference it in your PR, or create an explanatory one for discussion. In many cases features are absent for a reason.
  • This message body should clearly illustrate what problems it solves. If there are related issues, remember to reference them.
  • Ideally, include a test that fails without this PR but passes with it. PRs will only be merged once they pass CI. (Remember to npm run lint!)

Tests

  • Run the tests tests with npm test or yarn test)

Copy link
Member

@antony antony left a 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.

@MeuhMeuh
Copy link
Contributor Author

MeuhMeuh commented Jun 6, 2020

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).

@MeuhMeuh MeuhMeuh requested a review from antony June 6, 2020 17:07
@antony
Copy link
Member

antony commented Jun 6, 2020

Thanks! I'll see if we can get this merged soon :)

@MeuhMeuh
Copy link
Contributor Author

Hi @antony ! Any news about this ? It may be a bit late now ?

Thx !

@MeuhMeuh
Copy link
Contributor Author

MeuhMeuh commented Feb 4, 2021

Hi, should I close this ?

@antony
Copy link
Member

antony commented Feb 4, 2021

@MeuhMeuh no, we'll get to merging it as soon as we are in a position to do so.

@antony antony merged commit ebbdb42 into sveltejs:master Feb 4, 2021
hontas added a commit to hontas/svelte that referenced this pull request Feb 11, 2021
* '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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants