SchweizerischeBundesbahnen/scion-workbench

Stale view content when switching perspective

Opened this issue · 1 comments

Describe the bug

Sometimes, views display stale content when switching perspective, only for a short time, most noticeable in microfrontend views located in a different place.

Analysis

Views with identical identifiers (view.1, view.2, etc.) in different perspectives are not re-created when switching perspectives, thus displaying stale content for a short time.

To Reproduce

Steps to reproduce the behavior:

  1. Create perspective A with a view on the left-hand side.
  2. Create perspective B with another view on the right-hand side.
  3. Switch to perspective A.
  4. Switch to perspective B.
  5. See that the view displays the content of the previous view for a short time.

Expected behavior

Views should have unique identifiers to prevent displaying stale content.

Environment

SCION Workbench version: 19.0.0-beta.1

Additional context

Add any other context about the problem here.

Verify whether WorkbenchPerspectiveViewConflictResolver is still needed after replacing the view id with a UID.