DEV Community

Discussion on: Understanding @ngrx/component-store Selector Debouncing

Collapse
 
scooperdev profile image
Stephen Cooper

If you want to see the debounce flag in action in a larger example take a look at this Stackblitz from the ngrx docs. You can change the value in the paginator.store.ts and see the extra events emitted in the console.

ngrx.io/guide/component-store/usag...

stackblitz.com/angular/dkqxkdapgqj...

Collapse
 
yueyue07 profile image
Yueyue07

How did you set up Unit Test to run {debounce:true} scenario

Collapse
 
scooperdev profile image
Stephen Cooper

I am not 100% sure what you mean. I did not use a unit test just changed the flag in the code example and inspected the console output which showed a difference.