2022-11-16
1382
#svelte
Raphael Ugwu
15942
Nov 16, 2022 ⋅ 4 min read

Application state management with Svelte

Raphael Ugwu Writer, software engineer, and a lifelong student.

Recent posts:

Leveraging React Server Components In Redwoodjs

Leveraging React Server Components in RedwoodJS

RedwoodJS announced support for server-side rendering and RSCs in its Bighorn release. Explore this feature for when it’s production-ready.

Stephan Miller
May 6, 2024 ⋅ 9 min read
Exploring The Aha Stack: Astro, Htmx, Alpine — A Complete Tutorial With A Demo Project And Comparison To Other Stacks

Exploring the AHA stack: Tutorial, demo, and comparison

The AHA stack — Astro, htmx, and Alpine — is a solid web development stack for smaller apps that emphasize frontend speed and SEO.

Oyinkansola Awosan
May 3, 2024 ⋅ 13 min read
Comparing Hattip Vs Express Js For Modern Application Development

Comparing Hattip vs. Express.js for modern app development

Explore what Hattip is, how it works, its benefits and key features, and the differences between Hattip and Express.js.

Antonello Zanini
May 2, 2024 ⋅ 8 min read
Using React Shepherd To Build A Site Tour

Using React Shepherd to build a site tour

React Shepherd stands out as a site tour library due to its elegant UI and out-of-the-box, easy-to-use React Context implementation.

Onuorah Bonaventure
May 1, 2024 ⋅ 14 min read
View all posts

5 Replies to "Application state management with Svelte"

  1. Thank you for the solid explanation of a use-case for stores in Svelte.

    I recently started going through the Svelte documentation, and this really helped me tie things together in my mental model for how stores can be used.

  2. Thanks great guide, just please fix the error in the function:

    “`
    const addCar = car => update(car => {
    return […cars, car];
    });
    “`

    Should be:
    “`
    const addCar = cars => update(car => {
    return […cars, car];
    });
    “`

  3. Guys you got this backwards. addCar() should take a parameter of car (singular) and update should take cars (plural). Should be like this:

    const addCar = car => update(cars => {
    return […cars, car];
    });

Leave a Reply