Refactored object operation dispatch for SSE (#17174)
This PR refactors object record operation dispatch through a browser event instead of a state that was registering all operations. This is a cleaner pattern as it is a synchronous event code path instead of relying on a useEffect to watch state change, which is not ideal. We introduce this change first to then rely on this new pattern to dispatch SSE events in a following PR.
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
export const OBJECT_RECORD_OPERATION_BROWSER_EVENT_NAME =
|
||||
'object-record-operation-browser-event';
|
||||
Reference in New Issue
Block a user