solidjs / solidjs/solid-docs

[Content]: Memos explanation and examples issues

Aperta
#541 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

Nessuno ha ancora preso questa issue.

in progress solid
Lingua principale
MDX
Stelle
292
Fork
361
Merge medio
7h 51m
PR unite (30g)
1

Descrizione

📚 Subject area/topic

Memos

📋 Page(s) affected (or suggested, for new content)

https://docs.solidjs.com/concepts/derived-values/memos

📋 Description of content that is out-of-date or incorrect
  • The difference in behavior between memos and derived signals isn't clear enough, which makes it harder to understand when to use memos instead of derived signals

  • The side effect example doesn't cause an infinite loop but the sentence right above and below it talks about infinite loops which is a little confusing. The reader might think that the example code does cause an infinite loop even though it doesn't

  • The "Keep logic in memos" example doesn't behave the way it says, the memo will rerun every time count() changes

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

https://playground.solidjs.com/anonymous/53b087c4-7620-4a79-a60e-9477782856f5

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.