the-core-studio / vox-issue

MIT License
0 stars 0 forks source link

Normalise children loading mechanic #111

Open tclzcja opened 4 months ago

tclzcja commented 4 months ago

For scenarios like page-course loading section list, and section node loading media list, and comment panel loading comment node list, we should make PATCH methods ONLY returns IDs, and for each SectionNode, MediaNode or CommentNode, they make another load based on the ID.

By doing this we can avoid inner-node modification of props violating Vue "no mutation on prop" practise.

tclzcja commented 1 month ago

Duplicated with https://github.com/the-core-studio/vox-issue/issues/162

tclzcja commented 1 month ago

Actually let's keep this open and close the other one.