Observability makes me so excited

David Fahlander
Nov 20, 2020

--

I just created a stackblitz ToDo app based on the latest invention for Dexie.js — liveQuery().

The coolness of this is how simple it is to create components that displays and observes what’s in the DB. No need to useEffect() or anything — just declare what you want to observe. Nothing (almost) new to learn except one single hook useLiveQuery(). I’ve tried to write down some of the cool parts with the new liveQuery() possibility in the release notes of dexie@3.1.0-alpha.1.

This is still only possible by using the latest dexie alpha version. However, that version is pretty much identical with the latest stable except that I’ve added the new support for observability. So it’s pretty safe to upgrade. But I might change the API still — or decide to put parts of the new obervability features in an addon — that’s one of the nice things with releasing an alpha version — nothing is written in stone yet….

What I’m looking forward to even more, is to build apps in React + Dexie + Dexie Cloud and being able to like and share todo-lists with friends.

Now it’s your turn! Fork my stackblitz above and create your own example app! Or improve mine! Please share it back with me so I can put it on the samples page for Dexie!

--

--

David Fahlander

Author of Dexie.js. Passionate about simplifying app development. Javascript. Isomorphic app, data fetching and React.