@opengeni/react 0.34.1 → 0.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/react",
3
- "version": "0.34.1",
3
+ "version": "0.34.2",
4
4
  "description": "React hooks and styled components for OpenGeni: live session streaming, chat composer, message timeline, session status, and fleet views — token-themed (CSS variables), dark-first, built on Tailwind v4 + Radix + Motion.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -315,6 +315,12 @@ export function useWorkspaceCapture(
315
315
  if (!enabled) return;
316
316
  if (visibleAnnouncedRevision === null) return;
317
317
  if (loadedRevision !== null && visibleAnnouncedRevision <= loadedRevision) return;
318
+ // The mount request is already resolving the latest revision. Do not abort
319
+ // and replace that exact identity-equivalent read merely because the event
320
+ // tail announced a revision before the response arrived. When the request
321
+ // settles, its state update re-runs this effect and a genuinely newer
322
+ // announcement still refreshes immediately.
323
+ if (requestAbortRef.current) return;
318
324
  // A newer capture exists than the one we hold (or we hold none) — pull it.
319
325
  void refresh();
320
326
  }, [enabled, visibleAnnouncedRevision, loadedRevision, refresh]);