Closed gabrielguerrero closed 2 years ago
The goal of this trait is to create actions that store a value in a property of the store, and a selector to read it, something like
addStoreEntity({ entityName: 'client', actionProps: props<{ id: string , name: string}>(), })
and that will generate actions.storeClient({client: {id: '123', name: 'Gabs'}}) selectors.selectClient()
It will not need success and fail because its local stored, also the name could be addSetEntity with the action like set* instead of store
The goal of this trait is to create actions that store a value in a property of the store, and a selector to read it, something like
and that will generate actions.storeClient({client: {id: '123', name: 'Gabs'}}) selectors.selectClient()
It will not need success and fail because its local stored, also the name could be addSetEntity with the action like set* instead of store