lenrix
lenrix copied to clipboard
Type-safe, reactive, focusable redux store wrapper
calling `.pluck('optionalField')` causes a compilation error, while it should be legal
Currently, one can return (state) => state ```ts searchBeerName: name => name.length > 0 ? _.focusPath('loading').setValue(true) : state => state, ``` Returning `null` would look like: ```ts searchBeerName: name =>...
In order to make webpack hot module reload work properly we need to have something like this to update the store when an update, a computed value or an epic...
When testing, logging should be completely disabled.
Logger should be configured at the store level, enabling logging from only single store to reduce console noise.
```ts // Registering update with unknown action @shouldNotButDoesCompile store.updates(_ => ({ doString: s => _.focusPath('counter').setValue(42), unknown: s => _.focusPath('counter').setValue(42), })) ```