spierala / mini-rx-store

MiniRx - The reactive state management platform
https://mini-rx.io
Other
169 stars 9 forks source link

Refactor: mini-rx-store: use @mini-rx/common lib #209

Open spierala opened 6 months ago

spierala commented 6 months ago

Background

The MiniRx Signal Store uses the same concept as the original RxJS-based MiniRx Store. As a result there is a lot of code which can be shared between the two store solutions. For that reason the @mini-rx/common lib was created. @mini-rx/common is already used by the Signal Store.

See here the full public API of @mini-rx/common: https://github.com/spierala/mini-rx-store/blob/master/libs/common/src/index.ts

Task

Subtasks

This is a quite large task. But is is definitely possible to create smaller sub-tasks:

Tests

mini-rx-signal store is covered by a lot of unit tests. The tests will make the refactor relatively safe.

Indeed some tests can also be removed if mini-rx-store code is replaced with @mini-rx/common code.