Skip to content

signal-store entity selectors #4462

@zmara

Description

@zmara

Which @ngrx/* package(s) are relevant/related to the feature request?

signals

Information

Alternative to @ngrx/store selectors with parameters
export const selectTicketById = (id: string) => createSelector( selectEntities, entities => entities[id] );

Something like:
withEntities({entity}), withComputed(({entities) => ({ selectById: (id: string) => computed(() => entities[id]) })

Describe any alternatives/workarounds you're currently using

I get all entities from store in a component with computed filter one by id outside of the store withComputed

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions