Issue with Angular Designer not disposing instance
Posted: Fri Feb 26, 2021 12:21 pm
Hello,
I was researching something interesting about the angular designer lately. I have an angular client with the stimulsoft designer and a .Net Core api which serves the angular app. Inside my angular application I route to the component which has the stimulsoft designer inside. When I have the designer opened and the first time I save the report with "Ctrl+S" everything is fine. When I go back to my main page the component with the designer should get disposed. When I press the "Ctrl+S" combination in my main page, I see a POST request is still being made to the API, as if the designer instance was still present. When I route again to the designer and open a different report, another instance of the designer is being created. And again when I press "Ctrl+S" instead of the 2 POST requests it was making before, there are now 4. Two from the current report and two from the previous. How do I dispose of the designer instance once I close my component? When browsing the "StimulsoftDesignerComponent" inside angular I only saw a constructor and no destructor. Apparently my component that I was routing to gets disposed but not the designer instance. Is there a fix to this, or is this a bug?
Thank you for your reply.
Best regards
I was researching something interesting about the angular designer lately. I have an angular client with the stimulsoft designer and a .Net Core api which serves the angular app. Inside my angular application I route to the component which has the stimulsoft designer inside. When I have the designer opened and the first time I save the report with "Ctrl+S" everything is fine. When I go back to my main page the component with the designer should get disposed. When I press the "Ctrl+S" combination in my main page, I see a POST request is still being made to the API, as if the designer instance was still present. When I route again to the designer and open a different report, another instance of the designer is being created. And again when I press "Ctrl+S" instead of the 2 POST requests it was making before, there are now 4. Two from the current report and two from the previous. How do I dispose of the designer instance once I close my component? When browsing the "StimulsoftDesignerComponent" inside angular I only saw a constructor and no destructor. Apparently my component that I was routing to gets disposed but not the designer instance. Is there a fix to this, or is this a bug?
Thank you for your reply.
Best regards