Skip to content

Field-level subscriptions / selector support (similar to Zustand) #3790

@jayseo5953

Description

@jayseo5953

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions