New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MatPaginator example emits changes on initialization #2921
Comments
The example isn't intended to replace the |
Hey @timdeschryver, yes I know that's just an example, but as it tends to mimic the behavior of |
Good point @dev054 |
This is up for grabs if someone wants to create a Pull Request for it. |
Hey @timdeschryver, Can I grab this up? I am thinking of using rxjs |
There's a documentation on https://ngrx.io/guide/component-store/usage#example-2-service-extending-componentstore showing on how to implement
MatPaginator
usingComponentStore
(also thanks for it, a really nice example), however this excerpt seem to be have a bug that is the(page)
is being emitted even if you don't change the page, on the initialization, while theMatPaginator
version only emits(page)
on truly changes. Could the code on documentation be adjusted accordingly?I'm trying to follow that steps to implement a similar component and it would be really helpful if so and also it will help us to understand how the
{ debounce: true }
works.ComponentStore version: https://stackblitz.com/angular/vvxgxvlqvgd
Original version: https://stackblitz.com/edit/angular-yxh4es
Other information:
I would be willing to submit a PR for the docs ❤️
[ ] Yes (Assistance is provided if you need help submitting a pull request)
[ ] No
The text was updated successfully, but these errors were encountered: