Synchronized updates between UI components are needed
See original GitHub issueBreadcrumbs, navigation, types and workflow should be automatically expanded by the content action and distributed to the global store.
The problem is that, in case of slow backends, the whole UX is bad: clicking on a router link causes the whole interface to progressively update, with some of the UI components displaying wrong information for the main content.
From my perspective the above mentioned components (basically the ones triggered by the App.jsx asyncConnect) should not trigger any actions on router pathname change, they should get their props from the global store, which would be populated by getContent
.
So getContent, if no subrequest is provided, should pass ?expand=breadcrumbs,navigation,workflow,types
to the backend fetch and the content
reducer should be updated accordingly.
This refactoring would also make it easier to create a component that would provide visual feedback for backend network fetch.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
+1000 to explore this further and make it a priority, since it fixes some strange behaviours (happening now under the hood and almost invisible for the day to day but they are there).
As arguments in support of my issues, I bring: