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

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

    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