augury icon indicating copy to clipboard operation
augury copied to clipboard

State of component is not displaying

Open ajsuvarna6 opened this issue 9 years ago • 21 comments

Augury is a very good tool while developing angular 2 application. But the problem is, it doesn't display state of component. For some components it is showing state, but then some components it doesn't show state. Only dependency is displayed.

ajsuvarna6 avatar Jan 02 '17 04:01 ajsuvarna6

@ajsuvarna6 Can you provide an example repo or plunker where this occurs? That symptom has been reported (but not seen by me) when the router is injected into the component. Is this the case?

stevenkampen avatar Jan 03 '17 16:01 stevenkampen

It seems to depend on the dependencies. Having MdDialog (Angular Material2) listed as a dependency for a component will make state not show up for the component on Augury 1.2.7.

Edit: Listing ActivatedRoute gives the same issue. ActivatedRoute is what Angular uses for resolve guards, so any component that uses a resolve guard would not list their states.

jd-nfreitas avatar Jan 04 '17 21:01 jd-nfreitas

@stevenkampen I'm experiencing the same thing only for components where I'm injecting router..

ammarhaider7 avatar Jan 06 '17 17:01 ammarhaider7

@stevenkampen I'm seeing the same when using ngTemplateOutlet. The component loses all properties in the viewer. I'll see if I can get a plunker together, but I first ran across it while running ngx-datatable locally and viewing one of their tabs that uses ngTemplateOutlet i.e. Row Detail under Basic. https://github.com/swimlane/ngx-datatable Unfortunately their demo page is run in prod mode so you have to run it locally.

irackley-mc avatar Jan 11 '17 13:01 irackley-mc

@irackley-mc Thanks for your report. I'll get on this shortly and let you know when it's done.

stevenkampen avatar Jan 11 '17 14:01 stevenkampen

Ok I can recreate this now and confirm it's an issue with serialization/deserialization of some complex objects. Looking into it.

stevenkampen avatar Jan 13 '17 23:01 stevenkampen

This is fixed now in version 1.2.9, which was just released.

stevenkampen avatar Jan 23 '17 18:01 stevenkampen

Hi I seem to have this problem aswell but I have 1.4.0

rsksmiles avatar Mar 21 '17 20:03 rsksmiles

Yes, I'm getting same problem with 1.4.0

pgollangi avatar Mar 27 '17 10:03 pgollangi

@stevenkampen, I am still having the same problem with 1.5.0

raydaim avatar Mar 30 '17 14:03 raydaim

@irackley-mc This is fixed for you now right? I see state for all components I could find in that application you shared.

stevenkampen avatar Mar 31 '17 12:03 stevenkampen

@prasanna-kumar @raydaim If this is persisting for you, can you open a new issue (after checking one doesn't already exist that fits what you're seeing)?

stevenkampen avatar Mar 31 '17 12:03 stevenkampen

@stevenkampen It has been working for me since your fix. My guess is the new reports are related but not the same exact issue, although I haven't tried out Angular 4 at all.

irackley-mc avatar Mar 31 '17 12:03 irackley-mc

@irackley-mc Yes, that's the case here. Several things can screw up serialization apparently so I'm hunting them down one by one. Thanks for your report!

stevenkampen avatar Mar 31 '17 12:03 stevenkampen

I am having the same problem, using Augury 4.3.6 - any update on this?

NikxDa avatar Nov 02 '17 11:11 NikxDa

having same issue https://gyazo.com/8c5583c88dd9c20ce2460d855f4045c0 with canary build and usual augury 1.17

kostia-lev avatar May 22 '18 16:05 kostia-lev

Howdy, @kostia-lev

This issue is caused by numerous edge cases, many of which (although possibly not all) have been identified and fixed for in the latest Canary (version 1.17.4), released yesterday.

Can you confirm you are still seeing this issue in Canary version 1.17.4 ?

santiago-elustondo avatar May 24 '18 15:05 santiago-elustondo

Still having this issue with 1.19.1

tkstang avatar Jul 24 '18 21:07 tkstang

Happening me with 1.21.0

tinyweasel avatar Nov 14 '18 15:11 tinyweasel

How is this still an issue after nearly two years?! Displaying state on all occasions should be basic functionality and No. 1 priority if broken!

NikxDa avatar Dec 11 '18 12:12 NikxDa