Reactive record updates in front components #23456
remihuigen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Would it be possible to add a front-component hook that reacts to updates of the current record (or selected records)?
For example, we have a Company-record widget whose rendering and external data request depend on the current shape of the data. If a user updates either value through a pinned field, the widget remains stale because useSelectedRecordIds() only changes when the selected record changes.
A hook such as useCurrentRecord(selector) or useRecordChanges(recordId, fields) could support this and other reactive record-page widget use cases without polling or custom WebSocket infrastructure.
All reactions