I was able to find out where the issue is. When we load users we fetch users using this:
Here, we don’t pass the parameter of order(topic_viewed etc) and ascending to findAll function.
But on the first load(refresh), this function gets called by callback:
which again fetches users with order and ascending values.
When we go to badges and come back, this function doesn’t get called by any callback. Can anyone explain to me why?
I don’t want to change the first file to pass ascending and order from params to findAll since it will affect others using that class.
I m new to Ember Is there any other better way to solve this issue?