Files
twenty/packages
ClaudeandFélix Malfait d73fc5c08f fix: handle Apollo v4 useLazyQuery rejection to prevent permanent loading state
In Apollo v4, useLazyQuery's execute function returns a ResultPromise
that can reject on errors (unlike v3 where it resolved with the error
in the result). This caused the first object's list view to stay in
permanent loading after page refresh, because the unhandled rejection
left isRecordTableInitialLoading and isInitializingVirtualTableDataLoading
stuck in their initial states.

Two fixes:
- Add try/catch in findManyRecordsLazy to gracefully handle execute
  rejections (matching v3 behavior of returning errors in the result)
- Add try/finally in triggerInitialRecordTableDataLoad to ensure loading
  states are always cleaned up regardless of errors

https://claude.ai/code/session_01EA7CMTUTG5zFP132yvUweT
2026-03-13 10:41:53 +01:00
..
2026-03-12 15:55:30 +01:00
Fix
2026-03-13 08:49:21 +01:00