Raphael Ugwu
Nov 16, 2022 ⋅ 4 min read

Application state management with Svelte

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

Recent posts:

Vite Adoption Guide Overview Examples And Alternatives

Vite adoption guide: Overview, examples, and alternatives

Vite is a versatile, fast, lightweight build tool with an exceptional DX. Let’s explore when and why you should adopt Vite in your projects.

David Omotayo
Nov 29, 2023 ⋅ 16 min read
Implementing Advanced Features With The Navigator.Share API

Implementing advanced features with the navigator.share API

Explore advanced capabilities for content sharing with the navigator.share API, including dynamic content sharing, custom share targets, and batch sharing.

David Omotayo
Nov 29, 2023 ⋅ 10 min read
Chas Peacock Leader Spotlight

Leader Spotlight: Scaling for the next phase of growth with Chas Peacock

We spoke with Chas to get his insights on building technology and internal processes for companies that are scaling quickly.

Jessica Srinivas
Nov 29, 2023 ⋅ 7 min read
Cypress Adoption Guide: Overview, Examples, Alternatives

Cypress adoption guide: Overview, examples, and alternatives

Cypress is one of today’s foremost tools for testing web applications. Let’s explore when and why you should adopt Cypress in your projects.

Paul Akinyemi
Nov 28, 2023 ⋅ 10 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