-
Notifications
You must be signed in to change notification settings - Fork 59
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
Empty data causes other component blocking errors #9
Comments
It is strange that an error one Ember component will block another Ember Component from rendering. I will look into this. Thanks :). |
I experienced this too, but found a workaround by couching the chart inside a handlebars IF clause:
Bryan |
Does that mean whatever you put as |
We should add checks on the |
@Glavin001 I can confirm that this is an issue. It stops google map from rendering. |
@psteininger the temporary workaround I recommend would be #9 (comment) |
@Glavin001 the workaround doesn't work in my case. My data sits in |
this is more of a note-to-self: in https://github.com/Glavin001/ember-c3/blob/master/addon/components/c3-chart.js#L118 I think the cleanest thing to do is wrap things in a try-catch block and re-org things a bit. The reason for it is that C3 already does comprehensive validation, and throws an exception when things aren't kosher. There is no point in doing this twice. we could miss something and still have the same issue under slightly different conditions. |
@Glavin001 looks like I will have to tackle this next week. I found another issue - using a nested property just isn't supported now. I would like to add that in as well. I think we should be able to pass a config object, which would be merged with defaults in the components and set up observer on the data attribute of config object. I won't have time to finish this weekend, but I should be able to swing it on Monday |
fixed with pr #86. Will be released with 1.0.0 |
See issue #77 |
If you have an empty data object passed you will get the following error
This error will block any other components from rendering properly
The text was updated successfully, but these errors were encountered: