I am having problem in understanding one basic concept in ngrx implementation. One example is, I need some data to get from api to validate some information in my component but I may not need it after the validation is done. So I don’t want to store it in state as it will unnecessarily make state heavy . In this scenario if I use effect, without updating state, how can I get it my component.
Is it a good practice, in the above scenario, I can directly call service without using effect. Or there are some better implementation approach,
I don’t have any answer for this. I didn’t get any reference in the web for this situation.
You could use your service directly in your component. Or to keep your component thin you could instead create an action for what ever event is occurring when you go to validate the data in your component. Maybe that data your trying to validate should be in state.
Just an idea