Releases: cesbit/vlow
Releases · cesbit/vlow
1.1.26
1.1.24
- Improved typing
Actions and Stores with a typed state can now be created like this:
// represends the state on the store, e.g. this.state.todos
export interface IMyStore {
todos: string[];
}
class MyStore extends Vlow.Store<IMyStore> {
onFetch() { /* fetch todo's... */ }
}
const actions = [
'fetch',
] as const;
const MyActions = Vlow.factoryActions<MyStore>()(actions);
// MyActions.fetch() understands the arguments of the `onFetch` defined in the store1.1.23
1.1.22
1.1.21
1.1.20
1.1.19
- Update dependencies.
- Add
listenersEmpty(): voidevent callback function which may be implemented for when all components to a store are disconnected. - Added
unregisterStore()which must be called manually, for example inlistenersEmptyto un-register a store without listeners. - Update
vlow.d.tswith improved signatures.