Skip to content

Instantly share code, notes, and snippets.

@wosephjeber
Created September 13, 2023 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wosephjeber/e806509cd520c9bcc8b7fb3111d4c709 to your computer and use it in GitHub Desktop.
Save wosephjeber/e806509cd520c9bcc8b7fb3111d4c709 to your computer and use it in GitHub Desktop.
Notes from learning SolidJS

I'm learning SolidJS coming from React. I'm taking notes here on things that trip me up in the process.

  • Don't destructure props. It breaks reactivity with signals passed down as props.
  • Use untrack() to reference signal values in an effect without rerunning the effect when those signals change. Might be a less common use case? (Mine was referencing updated signal values in an interval started by the effect).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment