Hello everyone I'm working with an application in Polymer 2.0 For now everything was very good, but ... The routing !!
I've noticed Polymer loads all the necessary startup components and so the initial load is slow, right now I'm using "app-route" for my routing system, the only problem is that I work with modifiable properties from the child components
<app-location route="" use-hash-as-path></app-location>
<app-route route="" pattern="/:page" data="" tail=""></app-route>
<general-container router-title="" session=""" route="">
<iron-pages selected="[[routeData.page]]" attr-for-selected="name">
<some-components></some-components>
</iron-pages>
</general-container>
I want the components inside of general-container to modify a property by means of notify, the problem is that all the components are created and the modification I make in the connectedCallback
, the property that I want to change depending on the component that is shown is a title that I show in a top bar and that indicates where in the application I am
The other problem is that one of the components I use requests from a worker and I can not destroy the component, then the worker continues to make requests to API and consume resources
Someone knows a better route system, or in any case
Is something wrong with app-route?
Aucun commentaire:
Enregistrer un commentaire