GET /api/texts/
route should return only what the texts page needs.
#98
Labels
GET /api/texts/
route should return only what the texts page needs.
#98
At this moment, all information about a text, including the full text, is transferred from the server for the text list page.
This may not be problematic now, but it could become a problem when the list grows and the texts become longer (think book chapters), particularly on mobile.
I suggest that for the list the query returns only the id, title, and truncated text. When clicked, the full information, including full text, is loaded and stored in the currenttextState.
The text was updated successfully, but these errors were encountered: