Kindly can you share some insights on how you handle folder structure in app/models folder? #2577
Replies: 1 comment 2 replies
-
Generally speaking, our team does option 3, even in very large apps. It holds up well.
|
Beta Was this translation helpful? Give feedback.
-
I am starting this discussion just to understand how you handle global state at Infinite Red.
Do you create models for every screen or module wise?
app/models (these are folders which include screen1.ts and screen1.test.ts)
screen1
screen2
app/models
screen1.ts
screen1.test.ts
screen2.ts
screen2.test.ts
app/models
user (folder)
payment
marketPlace
I am asking because I am working on a product that is huge and complex! Currently, I've made sure that no file exceeds 150 lines of code for better performance.
However, when I think about how I will create its models, it confuses me because I am ending up with a lot of subfolders (nested).
Could you kindly share any insights, by keeping in mind there will be almost 100 screens?
Thankyou
Beta Was this translation helpful? Give feedback.
All reactions