-
Notifications
You must be signed in to change notification settings - Fork 129
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
v4.0.0 HttpInterceptor implementation breaks project behavior #237
Comments
@eliashdezr The gallery works properly in the demo
What do you mean? can you add a reproduction? |
Tried to reproduce it on the template but I couldn't make it. I had to revert to 3.3.1 and everything is working just fine. Is there something that is changing the changedetection behavior? Or setting any rxjs configuration on the fly? Btw, this happens by just importing any of the 3 modules I'll try to see to reduce my project as much as possible to see if I can reproduce it. |
@eliashdezr I cannot predict what is happening, if you cannot reproduce it then it is an issue with your project, maybe a fresh npm install would fix it |
Here's a reproduction captured into a GIF file:
As you can see, there's no implementation of This is my "dependencies": {
"@angular/animations": "^7.1.0",
"@angular/cdk": "^7.1.0",
"@angular/common": "^7.1.0",
"@angular/compiler": "^7.1.0",
"@angular/core": "^7.1.0",
"@angular/forms": "^7.1.0",
"@angular/http": "^7.1.0",
"@angular/material": "^7.1.0",
"@angular/platform-browser": "^7.1.0",
"@angular/platform-browser-dynamic": "^7.1.0",
"@angular/router": "^7.1.0",
"@ngx-gallery/core": "^4.0.0-beta.1",
"@ngx-gallery/gallerize": "^4.0.0-beta.1",
"@ngx-gallery/lightbox": "^4.0.0-beta.1",
"compressorjs": "^1.0.1",
"core-js": "^2.5.7",
"date-fns": "^1.29.0",
"hammerjs": "^2.0.8",
"lodash": "^4.17.11",
"rxjs": "^6.3.3",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.11.0-beta.0",
"@angular/cli": "^v7.1.0-rc.0",
"@angular/compiler-cli": "^7.1.0",
"@angular/language-service": "^7.1.0",
"@types/lodash": "^4.14.118",
"@types/node": "~10.12.8",
"codelyzer": "~4.5.0",
"ts-node": "~7.0.1",
"tslint": "~5.11.0",
"typescript": "~3.1.6",
"webpack-bundle-analyzer": "^3.0.3"
} This is how I import the modules: import { GalleryModule } from '@ngx-gallery/core'
import { GallerizeModule } from '@ngx-gallery/gallerize'
import { LightboxModule } from '@ngx-gallery/lightbox'
...
imports: [
GallerizeModule,
GalleryModule,
LightboxModule,
], Already cleaned my npm cache, removed package-lock.json and reinstall everything. Getting the same behavior. But if I unload all the ngx-gallery 3 modules or if I go back to the |
@eliashdezr Can't help you without reproduction, reproduce it here with version |
I'm starting to believe that this is what is causing my issues: On The issue with your implementation is that you are caching everything across the entire application, giving me the unexpected behaviors I just described above. Now it makes sense that I get |
Should be fixed in v4.0.1, can you confirm that? |
@MurhafSousli confirmed fixed on |
Updated info is this comment: #237 (comment)
--
This may no longer be relevant
I recently updated from v3.x and I noticed that I couldn't make second calls to any existing rxjs subscription object that I have already initialized, this could be from calling an API to using the reactive forms object, etc. they all go as
undefined
variables.I thought it was something related with Angular v7.1.0 but after commenting anything related with ngx-gallery, everything started working as expected. Is there a drastic change in v4 that destroy any kind of rxjs subscription?
The text was updated successfully, but these errors were encountered: