[WIP]: Optimal version for allowing collapsed entries to fetch data on request
Review Request #11889 — Created Dec. 6, 2021 and updated — Latest diff uploaded
This is a modified version of the working lazy collapsed project
based on Christian's suggestions in the review request here:
The only difference is that instead of checking the entry's html attributes,
we keep a state on the entry model indicating if the entry has been loaded,
which would be part of the initial model data on the page. If loaded,do
nothing.If not then load it by calling the function "fetchEntryUpdates"
which can trigger an immediate update to load the content of an entry.
TODO: Set the "loaded" state of an expand entry to true.
TODO: Require writing tests for entry model for the newly "loaded" added state.