opral / inlang-message-ui-components

Issue tracker for UI components
0 stars 0 forks source link

settings component is not reacting on updates #106

Open NilsJacobsen opened 2 months ago

NilsJacobsen commented 2 months ago

Screen_Recording_2024-07-03_at_09.25.55.mov

NilsJacobsen commented 2 months ago

We have a similar challenge, comparable with the message bundle component: We want to revert changes. In the settings rn it is solved like that:

Problem: To react to changes, we must override new settings every time the component receives an update. Now, we lose track of the latest saved state. Without access to history, this is not solvable without a hack.

-> @martin.lysk1, you talked about adding a "lastPushed" prop to the messageBundle? Are you any further in the discussion?