Example: Track Changes Publication Workspace State
You can track changes to the workspace state by listing to the onWorkspaceStateChanged signal.
- To prevent an overload of events, changes are dispatched using a debounce logic.
After one second of no changes, the change event is dispatched. - The signal payload is a JSON document that describes the state of the workspace.
On the right, you see the changes that were made to the workspace state (in reverse, so we can observe the most recent changes on top). We use the jsondiffpatch library for this, using the standard JSON Patch (RFC 6902) output format.
Last modified:: 2026/07/16 17:53