Skip to content

Commit b56472a

Browse files
[9.1] [Security][Timelines] Remove unstable batched updates (#234866) (#235280)
# Backport This will backport the following commits from `main` to `9.1`: - [[Security][Timelines] Remove unstable batched updates (#234866)](#234866) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"lgestc","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-09-16T21:10:29Z","message":"[Security][Timelines] Remove unstable batched updates (#234866)\n\n## Summary\n\nThis functionality is now available without the unstable api uses,\nstarting with react 18:\n\nhttps://react.dev/blog/2022/03/29/react-v18#new-feature-automatic-batching\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"ed9f709ef56b182116ebcd788245fdecfdacfd8b","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","release_note:skip","Team:Threat Hunting:Investigations","backport:prev-minor","v9.2.0"],"title":"[Security][Timelines] Remove unstable batched updates","number":234866,"url":"https://github.com/elastic/kibana/pull/234866","mergeCommit":{"message":"[Security][Timelines] Remove unstable batched updates (#234866)\n\n## Summary\n\nThis functionality is now available without the unstable api uses,\nstarting with react 18:\n\nhttps://react.dev/blog/2022/03/29/react-v18#new-feature-automatic-batching\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"ed9f709ef56b182116ebcd788245fdecfdacfd8b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/234866","number":234866,"mergeCommit":{"message":"[Security][Timelines] Remove unstable batched updates (#234866)\n\n## Summary\n\nThis functionality is now available without the unstable api uses,\nstarting with react 18:\n\nhttps://react.dev/blog/2022/03/29/react-v18#new-feature-automatic-batching\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"ed9f709ef56b182116ebcd788245fdecfdacfd8b"}}]}] BACKPORT--> Co-authored-by: lgestc <[email protected]>
1 parent be43a4c commit b56472a

File tree

1 file changed

+5
-8
lines changed
  • x-pack/solutions/security/plugins/security_solution/public/timelines/containers/details

1 file changed

+5
-8
lines changed

x-pack/solutions/security/plugins/security_solution/public/timelines/containers/details/index.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import { isEmpty } from 'lodash/fp';
99
import { useCallback, useEffect, useRef, useState } from 'react';
10-
import ReactDOM from 'react-dom';
1110
import deepEqual from 'fast-deep-equal';
1211
import { Subscription } from 'rxjs';
1312

@@ -90,13 +89,11 @@ export const useTimelineEventsDetails = ({
9089
next: (response) => {
9190
if (!isRunningResponse(response)) {
9291
Promise.resolve().then(() => {
93-
ReactDOM.unstable_batchedUpdates(() => {
94-
setLoading(false);
95-
setTimelineDetailsResponse(response.data || []);
96-
setRawEventData(response.rawResponse.hits.hits[0]);
97-
setEcsData(response.ecs || null);
98-
searchSubscription$.current.unsubscribe();
99-
});
92+
setLoading(false);
93+
setTimelineDetailsResponse(response.data || []);
94+
setRawEventData(response.rawResponse.hits.hits[0]);
95+
setEcsData(response.ecs || null);
96+
searchSubscription$.current.unsubscribe();
10097
});
10198
}
10299
},

0 commit comments

Comments
 (0)