ngrx/platform

signal-store entity selectors

zmara opened this issue · 0 comments

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