salsita / spicy-hooks

7 stars 0 forks source link

`Store` without initial value doesn't dispatch updates #39

Open goce-cz opened 3 years ago

goce-cz commented 3 years ago

When a Store is instantiated with undefined as initial state, update() method doesn't emit updated values.

Either throw a meaningful exception when instantiating or make it work.