I’m having a bit of trouble understanding cells and how to architect them. I have an entity (Post) with several related entities (PostLog, Comments, etc). I want to create a View Post page that display the Post, PostLogs and Comments together.
- Would I be looking at creating Cells for each of the entities then putting them together at the Page level, or would I be including the PostLog/Comment Cells into the Post cell? (I don’t really have a use case where I would need to reuse the Post cell)
- If the answer to the former approach is “put the cells together at Page level”, I want to display the title of the Post independently from the Cells. Should I create a PostName Cell that fetches only the name, or should I just make a separate query using
useQuery
? Creating Cells for fetching a single value seems overkill.