-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix support for rxjs@>=7 #238
base: master
Are you sure you want to change the base?
Fix support for rxjs@>=7 #238
Conversation
I got a new Mac. I need to setup a lot of stuff Once I'm done I'll dive into it. Thanks! |
This would super nice to have soon! ngrid is blocking Angular 13 update right now for us. :) |
Will review next week |
@skrtheboss Sorry for the long delay. So, i'm trying to review this one, but there are 2 It might be that there are no code changes there at all, if that's the case can you omit those from the commit? |
Ok, I understand a bit more. This is actually 3 PR's in one.
First, for point (2) - No need, it will go in as part of #220 For (1) - That's great For (3) This is a breaking change here as well break anyone who uses RxJs 6.5+ which angular supports (v14 at the time this is written) So it's an issue here which needs to be handled with backward compatibility in mind. Best option is to detect the RX version. The other option is to accept a parameter, which I would like to avoid. |
In version 5.0.0 all of the issues are resolved except the RXJS issue. i've ported to rxjs and ran it, did not find any issues, I've also added your code which actually changed the behavior as it was with rxjs 6, without your code rxjs 7 yields the same behavior as 6. So, I could not reason this issue. Please, if possible, reproduce in StackBlitz Thanks! |
Hi @shlomiassaf, thank you for reviewing the pull request. I do not remember why i had issues with rxjs, but as my commit states,
they have made some changes to the buffer operator, so if you can double check and it does not make any difference, than I am okay to close this pull request. And will open a new one if the problem still persists. Thank you! |
I trried out the latest version, and i get an error printed in the consoloe:
pebula-ngrid.mjs:3929:
As far as i understand |
5652699
to
7d3d2d5
Compare
Signed-off-by: skrtheboss <[email protected]>
Since rxjs 7.0.0-beta.11 https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#breaking-changes-2, the buffer also emits the buffer on notifier completion. So we need to skip the last value emitted by the buffer.
7d3d2d5
to
9a1f573
Compare
@skrtheboss I understand. I could not reproduce it. I would like to fix it but I must also verify it works with RXJS 6+ as it is officially supported by angular. Also, the commit has many style changes applied automatically by your editor I guess. If you can remove them it will Thanks! |
This is blocking me too. The error happens when the grid is being destroyed when you navigate to a new page. Here is a stackblitz to demonstrate: https://stackblitz.com/edit/pebula-ngrid-starter-cjyb7v The grid is empty but that does not affect anything - error happens no matter what. |
Thanks, now I have something to work with |
This is same error as in this issue #215 - It seems it has been there since Angular 12. But somehow now Angular 14 & rxjs 7 is causing it to appear to me too. I think it has something to do with angular page routing, because it's now manifesting when I click link in table to go to another page. But since some people where having the problem already with Angular 12, I don't think it's purely problem with rxjs 7. |
Fix some issues with latest version of npm packages.