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

document setter function passing previous value #961

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

brenelz
Copy link
Collaborator

@brenelz brenelz commented Nov 24, 2024

  • I have read the Contribution guide
  • This PR references an issue (except for typos, broken links, or other minor problems)

Description(required)

Document setter that passes previous value

Related issues & labels

Copy link

stackblitz bot commented Nov 24, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Nov 24, 2024

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit 49bfdee
🔍 Latest deploy log https://app.netlify.com/sites/solid-docs/deploys/6742aebdb930f600089be4cd
😎 Deploy Preview https://deploy-preview-961--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -49,6 +49,14 @@ setCount(count() + 1);
console.log(count()); // output: 1
```

The setter function also can take a function that passes the previous value.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The setter function also can take a function that passes the previous value.
The setter function can also take a function that passes the previous value.

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.

[Content]:
2 participants