I am facing a strange issue when accessing controller properties in the component. I am setting up a controller property say 'selectedFilters' in thr route's setupController hook. I want this updated value within one of the components and I am passing this to an attribute of the component. The issue is, the component is not getting the updated value(done in route's setupController) but it is getting its instantiated value.
I have tried observing the selectedFilters and I am able to see the value updated. But the component's didUpdateAttrs is not triggered. Also, I have tried accessing this in init hook of the component but of no luck.
Note: If I set the value within controller, I have no issues. The issue is only when doing that in route's setup controller.
Aucun commentaire:
Enregistrer un commentaire