receiveAction method
Run when a store state is received from the listener
Implementation
ThunkAction<T> receiveAction(T state){
return (Store<T> store) async {
//Stores the box
await onReceive(state);
dispatch(SetState(state));
};
}