I am creating a web app using backbone.js in which there are multiple views which are rendering fine.
The main problem is handling the back button event.
When i press a back button the earler view renders properly but by following the same process of calling the fetch().
I dont want the call the fetch() instead render the view with the earlier data received.
Is there any way to do it?
You essentially want to have a condition on the
fetch. There are a couple of approaches, one would be to assign it to the instance like this: