useSelectors

The big brother of useSelect isbindSelectors.. It works similar, but useSelectors allows you to bind a group of selectors that become transformed to Observables at runtime.

import { useSelectors, StoreChunk } from '@ngrx-ducks/core';

import * as selectors from './selectors';

@StoreChunk()
export class Chunk {
  select = useSelectors(selectors);
}

Last updated

Was this helpful?