You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(plugin-view): prevent ObjectView.fetchData double-run caused by objectSchema dep
ObjectView's fetchData effect included `objectSchema` as a dependency.
When `fetchObjectSchema` completed and set objectSchema state, React
re-ran fetchData a second time — two calls to dataSource.find() per
view activation. Both results were passed as `data` to child views
(e.g., ObjectCalendar), causing the remaining 2× event duplication.
Fix: use an objectSchemaRef (updated during render, same pattern as
ObjectCalendar already uses) so fetchData reads the latest schema
without requiring it in the dep array. Also adds handling for OData
{ value: [...] } response format that was missing from ObjectView's
manual record extraction (extractRecords handles it; ObjectView didn't).
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
0 commit comments