David Dal Busco
1 min readSep 26, 2020

--

You are right it would work with a plain object.

Even though, the store offers a bit more by providing features such as `onChange`, which we can for example use to trigger the change detection "manually", specially useful with the `onPush` strategy (see related branch in the repo), or `dispose`, which can be call before each tests, or even `reset`.

Of course with an object, you can also implement such features by your own too.

--

--

David Dal Busco
David Dal Busco

Written by David Dal Busco

Freelancer by day | Creator of Juno.build by night

No responses yet