multi instances store and what is good way to handle multiple data source #43
-
I have 2 cases:
So my question is: is it a best practice or do I need to handle it in "account" service or "account" store?
tag.repository.ts
a.component.ts
b.component.ts
TagDataAccessModule.forChild({ name }) will return tag service and tag store provider. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, As for the first question, API requests should be handled by a service. As for the second question, |
Beta Was this translation helpful? Give feedback.
Hi,
As for the first question, API requests should be handled by a service.
As for the second question,
tags
belong to an account if I understand correctly. Assuming that's the case, and the only thing you need to do is fetch them from the server and add them to the account, why not just use oneAccount
store?