You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
📋 Description of content that is out-of-date or incorrect
In this section doubleCount is used twice as a variable name. This is not possible. It is not just a typo, therefore, I opened this issue instead of a direct PR.
Appreciate the feedback! I think this might be one of those cases where making the code copy-paste runnable isn't totally practical. The snippet is really meant more for demonstration. That is, to show how a derived signal can be used instead of introducing an extra signal and a createEffect.
That said, I’m going to go ahead and close the PR for now. If this happens to be an issue related to how the code snippet is running, though, please let us know in another issue!
I disagree with that. In my opinion, every code in the docs should be runnable. It is not a good practice to show code that is actually not working. However, I accept the decision.
📚 Subject area/topic
/guides/state-management.mdx
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/guides/state-management#derived-state
📋 Description of content that is out-of-date or incorrect
In this section doubleCount is used twice as a variable name. This is not possible. It is not just a typo, therefore, I opened this issue instead of a direct PR.
Snippet:
Snippet:
Suggestions:
If it is fine, I would create a slightly adjusted example for this section and make a PR as proposal.
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
The text was updated successfully, but these errors were encountered: