bug: Livereload via "ionic serve" does not work properly (loosing back button, state etc.)
Type: bug
Platform: desktop browser
Hey, guys. I have faced an issue coupled with LiveReload via "ionic serve". Apparently, this is ionic refresh side-effect (seems that ionic looses state on refresh). Here is the one of many scenarios of how one can repro it.
Steps to reproduce:
- Create the default tabs app (ionic start myApp tabs)
- Start the app with LiveReload server (ionic serve)
- Navigate to "Friends" -> "Scruff McGruff"
- Open 'www/templates/friend-detail.html' in some editor
- Add something inside
tag (e.g. Livereload breakage) and save changes ERROR - "Back button" lost. "Friends" tab is broken (showing Scruff McGruff only)
Here is a short demo video - http://screencast.com/t/MibRQci9y
If the entire app is refresh, it'll no longer have a history of previous views, which is why the back button no longer shows.
@Ionitron I see. But is there are any way to perform 'smart' refresh (with history saving)?
A useful feature would involve being able to set a config variable that resets to specific state on livereload. Depending on what you are trying to achieve when working through the application. Sometimes I'm just working on a single page and the loss of history doesn't matter, but in other cases this function defeats the purpose of livereload since I have to go and change the URL back to my base domain, or to a specific state.
+1 it would be very useful to have this addressed
This would be an issue bring up on the cli repo, not the framework.
+1
+1