Работать то он будет. Но правиьлно ли это с точки зрения архитектуры?
Документация по экшенам говорит
Actions are payloads of information that send data from your application to your store. They are the only source of information for the store.
export class TestComponent{
constructor(private service: SomeService, store: Store) {
const callbackFn = (value) => {
this.someFunction(value);
}
this.store.dispatch(someAction({
callback: callbackFn
}))
}
someFunction(value) {
this.service.showModal(value);
}
}