-
Notifications
You must be signed in to change notification settings - Fork 94
Lf 4978 refactor tags used in api slice #3900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: integration
Are you sure you want to change the base?
Lf 4978 refactor tags used in api slice #3900
Conversation
Just caught up on the conversation. Overall I am personally good with the object approach as it keeps that single source of truth. I also hsaw another option -- I was looking at it and it bothered me that we could not define the tag 'Weather' in So if that bothered you too, we could consider if we should modularize differently without using
Looks great otherwise once you choose a direction! Just might consider moving the object manipulation to the tags file too:
|
That could be definitely a point of discussion, as there are around 50 sagas and finalizing the architecture at the initial stage is very crucial. Let summarize pros and cons of both Independent and shared base API structure to finalize the structure. Single Base APIPROS:
CONS:
Multiple Independent APIsPROS:
CONS:
In my opinion, using a single base API offers greater benefits for our setup since we have a mono-repo and a single API URL. The independent API approach is more suitable for multi-backend or micro-services architectures. I’d be happy to discuss this further and get your thoughts. |
Description
This PR is a proof of concept (POC) demonstrating a potential improvement to the tag structure in
apiSlice
for better type-safety, autocomplete, and organization.It explores two approaches:
Inline comments provide explanations and usage examples for both approaches.
Jira link:https://lite-farm.atlassian.net/browse/LF-4978
Type of change
How Has This Been Tested?
Checklist:
pnpm i18n
to help with this)