question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Synchronized updates between UI components are needed

See original GitHub issue

Breadcrumbs, 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:open
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sneridaghcommented, Oct 11, 2020

+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).

0reactions
tiberiuichimcommented, Sep 24, 2020

As arguments in support of my issues, I bring:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best way to update UI when dealing with data ...
There are three states I need to deal with. Sync has started. Sync is updating tables. Sync finished. These items need to occur...
Read more >
Synchronizing with Effects
Some components need to synchronize with external systems. ... Effects run at the end of the rendering process after the screen updates.
Read more >
Synchronizing calls to the UI in a multi-threaded application
I want to free up the UI code from having to synchronize callbacks ... quote service with the UI thread and only then...
Read more >
Four ways to keep backend data synced with your frontend
One big question people have when building frontend applications is, what's the best way to keep backend data synced with my frontend data?...
Read more >
using React to sync updates and offline activity across ...
Interface from Data: using React to sync updates and offline activity ... React interfaces are made of components that render views based on ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found