Skip to content

[SPIKE] : How to do Optimistic Updates with NgRx Signal Store for Real-Time Style Changes #33691

@KevinDavilaDotCMS

Description

@KevinDavilaDotCMS

Research Question

How can we implement optimistic updates in NgRx Signal Store to keep SDK components synchronized with the UVE state, while allowing rollback in case of API save failures?

Timebox

4h

Acceptance Criteria

  • Investigate NgRx Signal Store’s latest features related to optimistic updates or rollback mechanisms.
  • Propose a way to store and restore previous versions of the state in case an API call fails.
  • Define a synchronization strategy between the UVE state and SDK components to ensure real-time updates.
  • Document the proposed flow and potential technical limitations.

Context

Style updates in UVE should occur in real time, reflecting instantly on SDK components.
To achieve this, the SDK and UVE states must remain synchronized — meaning the state should be updated before the API save operation.

If the API call fails, we must have a reliable way to revert to the previous state.
Although the communication tunnel between UVE and SDK components already exists, the optimistic update mechanism still needs to be explored.

This spike aims to research how NgRx Signal Store can handle optimistic updates and rollback scenarios efficiently.

Links

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions