We're a place where coders share, stay up-to-date and grow their careers.
I agree, your comment is on point!
I would stress that ideally a dumb component should never access a service for state.
Of course I am quite sure there are situations where a service could be needed
haha I had dumb component written but changed it to view only component. I felt as if dumb may be offensive. Im not sure why components don't have feelings =)
Thanks to you both. The considerations for I/O vs a service make much more sense to me now. Like most thing in programming (and life), it depends!
I agree, your comment is on point!
I would stress that ideally a dumb component should never access a service for state.
Of course I am quite sure there are situations where a service could be needed
haha I had dumb component written but changed it to view only component. I felt as if dumb may be offensive. Im not sure why components don't have feelings =)
Thanks to you both. The considerations for I/O vs a service make much more sense to me now. Like most thing in programming (and life), it depends!