Comments (17)
What requires Angular9+ ngneat/until-destroy,
Ivy, or both?
from until-destroy.
@mapicard both. Angular 9 uses Ivy by default.
from until-destroy.
I'm wondering if this confusion could be mitigated by bringing the ViewEngine functionality into this package. The import would look something like:
import { untilDestroyed } from @ngneat/until-destroy/view-engine
Or is that an overkill that does not help anything?
from until-destroy.
Gentlemen, it's been 2 months and seems like no one hasn't provided any minimal reproducible example. :(
from until-destroy.
Thanks, closing this issue.
from until-destroy.
Could you create a minimal reproducible example?
from until-destroy.
I made a minimal setup (https://i3-provider-untildestroy.stackblitz.io) but i'm getting another issue.
Cannot read property 'onDestroy' of undefined
from until-destroy.
it seems there's the same issue with Ionic 4
from until-destroy.
@mapicard you should enable Ivy
from until-destroy.
Ok, I'm not familiar with this and willing to give it a try but can you elaborate a bit on how it could fix the issue? I am using Ionic3 with Angular5.
from until-destroy.
:D
It requires Angular 9+.
from until-destroy.
these two words answers are really confusing.
I have an app using Ionic 4, Angular 8 (Ivy disabled). I get an error in either case - whether the Decorator is used or not. Does this mean that this library won't work without Ivy enabled?
from until-destroy.
Why? Have you read the readme? π I guess there is no sense of copy-pasting it here :D
from until-destroy.
I did, but your comment made me look at it again. I remember seeing that under Use with View Engine section the import was from a different package: ngx-take-until-destroy
. I assumed that it was a typo and kept trying using the @ngneat/until-destroy
. Now I understand that's intentional. Thanks!
from until-destroy.
Same one Ionic 5 it never used onDestroy
but ionViewDidLeave
from until-destroy.
I didn't feel there's a need for it since (with your help) I figured out what the issue was. I'd say the whole thing boils down to the confusion that ViewEngine requires a use of a different package. I think other people are just confused about it. If that's not the case, then yeah, repro is still required.
from until-destroy.
@arturovt I was using the wrong package with angular 9.
fixed it
angular 9 (Ivy) : @ngneat/until-destroy
angular 8 ( no-ivy) & bellow : ngx-take-until-destroy
Everything works well now π. I was reading the comments out of context, based on te old documentation for the library.
Just a additional note for anyone else using IonicFramework and OnDestroy
- Ionic Angular lifecycle
- StackOverflow: Ionic Components are not destroyed after navigation to another page ;
@mapicard Ionic 3 is not using Ivy,. The last version of Angular i used with it was angular 7. The changed the events after that . (Migrating from Ionic 3.0 to Ionic 4.0).
You can use the old documentation and it will work :
Use with View Engine (Pre Ivy)
from until-destroy.
Related Issues (20)
- unsubscribed checker breaks change detection HOT 1
- Add a util cancel Promises
- Angular 14 ut could not run correctly HOT 1
- Angular 14 ut could not run correctly with a minimal reproducible example
- Angular 14 ut could not run correctly with a a minimal reproducible example HOT 7
- Can I ask what's the utility for this package?
- How to use until-destroy-migration? HOT 4
- NG0204: Token InjectionToken X is missing a Ι΅prov definition after Angular 15 upgrade HOT 20
- Angular 15 Directive Composition API: Cannot access [component] before initialization. HOT 4
- [Documentation] For using `untilDestroyed` in non Angular apps HOT 1
- untilDestroyed assumes ngDevMode is defined HOT 2
- Warnings for github actions builds
- Component is undefined if @UntilDestroy() is used HOT 2
- Supporting other types of Subscriptions HOT 1
- Support TS 5.0 non experimental decorators for the UntilDestroy decorator
- ERROR Error: ASSERTION ERROR: token must be defined [Expected=> null != undefined <=Actual] HOT 5
- Angular 16 takeUntilDestroyed HOT 7
- Need upgrade for Angular 17 HOT 2
- Debugger in source code
- Error when using Target 2022 - Similar issue link provided HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from until-destroy.