Hi! Really enjoying Reactive Data Client so far — especially the normalized cache and endpoint model.
I had a question about subscription granularity.
From what I understand, subscriptions are at the entity/query level, so if one field on an entity changes, all components consuming that entity rerender — even if they only use unrelated fields.
Is there any support (or plans) for field-level subscriptions or selectors, similar to Zustand?
For example:
const title = useSuspense(getTodo, { id }, data => data.title);
so that components only rerender when the selected value changes.
Or is the current recommendation to:
- split components
- pass smaller props
- rely on
React.memo
Just trying to understand the intended pattern for:
- large forms
- complex pages
- data tables
Thanks!
Hi! Really enjoying Reactive Data Client so far — especially the normalized cache and endpoint model.
I had a question about subscription granularity.
From what I understand, subscriptions are at the entity/query level, so if one field on an entity changes, all components consuming that entity rerender — even if they only use unrelated fields.
Is there any support (or plans) for field-level subscriptions or selectors, similar to Zustand?
For example:
so that components only rerender when the selected value changes.
Or is the current recommendation to:
React.memoJust trying to understand the intended pattern for:
Thanks!