Image for post
Image for post
Photo by Max van den Oetelaar on Unsplash

In my previous article, I explained our decision to move forward with Svelte.js for our production website. In this article, I am diving into a technical detail we had to build for the application: chained stores. Svelte’s developer experience is built around reactive stores: using the observable pattern for dynamic values in the UI. This means that once a value changes, the pieces of UI that depends on it update to reflect the new value in the DOM.

What I am calling a chained store is a store that needs the value of a first store in order to exist. For example, a first store that defines the user id, and the second one that needs to point to some attribute of the user. …

Image for post
Image for post
Photo by Qingbao Meng on Unsplash

When I stumbled upon the Svelte 3’s introduction talk by @Rich Harris a year ago, I was awestruck. Being a great fan of React since its beginning, and having been mind-blown as well by the talk introducing React Asynchronous Rendering a year before that, I was instantly convinced. Yet, being busy on React projects, I had never used Svelte passed the tutorial and couldn’t wait to try it for real.

What impressed me with Svelte was the incredible promise of performance (and lightness, at the same time) as well as easier transitions and animations. …


Mikaël Castellani

Passionnate about the future of work, I am the co-founder of Come check it out !

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store