I have a case where I check some error condition at the beginning of the code. If there is error I just want to display error message so basically it is if (error == true){ display message } else { //render regular page add(component1) add(compnent2) }
if there is error I don't have any data to generate my component. Is there a clean way to do this. I'm getting Unable to find component with id 'chart1image' exception. Appreciate your feedback thank you