I have created class level variable “properties” which i tried to populated in ionViewWillEnter, ionViewDidEnter and componentWIllReceiveProps through API call and assign the value with usage of spread operator like this.properties = service.response. I also inserted a console.log(properties) in the render. What i can see is that for former two the render seems to be called first, then api update for the later, the api is called but the value is not set.
Hence nothing is rendered.
What can be the issue?
2 posts - 2 participants