Log in Sign up
1 Matching Annotations
  1. Oct 2020
  2. dylanvann.com dylanvann.com
    Svelte Components Are Not Resilient
    1
    1. TylerRick 12 Oct 2020
      in Public
      To fix our Svelte version you might think we could use beforeUpdate or afterUpdate, but these lifecycle functions are related to the DOM being updated, not to prop updates. We only want to rerun our fetching when the album prop is changed.
      lifecycle callbacks UI library: reacting to prop changes easy to get wrong easy to confuse (mix up) the natural assumption false assumptions surprising confusing for newcomers Svelte for someone coming from React
    Visit annotations in context

    Tags

    • confusing for newcomers
    • the natural assumption
    • UI library: reacting to prop changes
    • surprising
    • easy to get wrong
    • Svelte for someone coming from React
    • easy to confuse (mix up)
    • lifecycle callbacks
    • false assumptions

    Annotators

    • TylerRick

    URL

    dylanvann.com/svelte-components-are-not-resilient
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy