Skip to content

Conversation

@Karthikeyan2k3
Copy link

Added a new tutorial to highlight Signals as a concept in and of itself, so everybody going through it will understand how they work and differ from hooks.

I have sprinkled a few hints about signals across a couple of pages (Essentials ⤵ Forms, Refs sections, etc.) in the guide as well, so users are reminded how something of the same effect as documented can be achieved via signals too, this swiftly follows "Signals" example tabs inserted right alongside Classes and Hooks.

Related to #1281

Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this! I still need to read the tutorial page but this is a great start!

solvable: true
---

# Signals
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not essential, but some more consistent line length in this document would be appreciated. Some lines wrap early, some go long; it's just a bit inconsistent when editing.

parts of the UI that actually uses them. A signal remembers its value and automatically tracks where it is used, so when the value
changes, only the parts that depend on it will update.

### Creating a signal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like a lot of this content should be copy/pasted from the Signals guide page or intro blog. It looks like you wrote this entirely yourself, which is impressive, but the language and examples diverge quite a bit despite containing similar information.

Don't have time to review more right now, but I can take a look at this myself at some point.

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.

2 participants