Ionic-framework: Navigator Controller - Object Unsubscribed

Created on 5 Jan 2017  Â·  10Comments  Â·  Source: ionic-team/ionic-framework

Ionic version: (check one with "x")
[ ] 1.x
[x ] 2.x

I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Has a problem using Navigator Controller, because I noticed when used conditions like ngIf or ngSwicht to alter an item by ion-list, ion-card and ion-grid, when I click in the back button on navigator is showing a error message Object Unsubscribed and stop the navigator controller.

Expected behavior:
In Ionic 1 this problem not exist, I'm starting use the latest version by ionic 2, I don't know if that this error exists in old version.

Steps to reproduce:
screen shot 2017-01-03 at 09 56 03

Complete Error Message:
note.pdf

Most helpful comment

This issue should be fixed in the nightly release, to update:

npm install ionic-angular@nightly --save --save-exact

It will also be in the 2.0.0-rc.5 release. Please let me know if you still have an issue, thanks!

All 10 comments

Hello! Thanks for using Ionic! We are actually working on fixing this issue now and you can expect it to be fixed in the next release.

Ill update this issue when i can confirm that it is fixed.

This issue should be fixed in the nightly release, to update:

npm install ionic-angular@nightly --save --save-exact

It will also be in the 2.0.0-rc.5 release. Please let me know if you still have an issue, thanks!

@brandyscarney Thank you!!! Now worked very well

Hey @brandyscarney, sorry to say I just run into this error again on the latest nightly (2.0.0-rc.4-201701052314). I'm looking into it, I'll see if I can reproduce it in a minimal example.

Thanks @jsayol! Let me know when you do. I'll leave this issue closed and the other issue (#9751) open since this use case was fixed.

Oops, actually meant to comment on the other one.

Hi there, i'm having this issue with 2.2.0, is that fix in this release?

Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.9.1
ios-sim version: 3.1.1
OS: macOS Sierra
Node Version: v6.3.1
Xcode version: Xcode 8.2.1 Build version 8C1002
"ObjectUnsubscribedError: object unsubscribed↵    at new ObjectUnsubscribedError 
(http://localhost:8100/build/main.js:6908:26)↵    at Subject.next 
(http://localhost:8100/build/main.js:7009:19)↵    at ScrollView.scrollEnd [as _endTmr] 
(http://localhost:8100/build/main.js:51888:32)↵    at ScrollView.destroy 
(http://localhost:8100/build/main.js:52180:30)↵    at Content.ngOnDestroy 
(http://localhost:8100/build/main.js:57070:38)↵    at Wrapper_Content.ngOnDestroy 
(/IonicModule/Content/wrapper.ngfactory.js:15:16)↵    at 
CompiledTemplate.proxyViewClass.View_EncontradoPage0.destroyInternal 
(/AppModule/EncontradoPage/component.ngfactory.js:281:22)↵    at 
CompiledTemplate.proxyViewClass.AppView.destroy 
(http://localhost:8100/build/main.js:10834:14)↵    at CompiledTemplate.proxyViewClass.DebugAppView.destroy 
(http://localhost:8100/build/main.js:11062:38)↵    at CompiledTemplate.proxyViewClass.View_EncontradoPage_Host0.destroyInternal 
(/AppModule/EncontradoPage/host.ngfactory.js:39:19)"

__p 

Getting the same issue too...

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

masimplo picture masimplo  Â·  3Comments

brandyscarney picture brandyscarney  Â·  3Comments

danbucholtz picture danbucholtz  Â·  3Comments

brandyscarney picture brandyscarney  Â·  3Comments

MrBokeh picture MrBokeh  Â·  3Comments