Ionic-framework: bug: Livereload via "ionic serve" does not work properly (loosing back button, state etc.)

Created on 3 Mar 2015  路  7Comments  路  Source: ionic-team/ionic-framework

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:

  1. Create the default tabs app (ionic start myApp tabs)
  2. Start the app with LiveReload server (ionic serve)
  3. Navigate to "Friends" -> "Scruff McGruff"
  4. Open 'www/templates/friend-detail.html' in some editor
  5. 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

All 7 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RobFerguson picture RobFerguson  路  3Comments

alan-agius4 picture alan-agius4  路  3Comments

giammaleoni picture giammaleoni  路  3Comments

SebastianGiro picture SebastianGiro  路  3Comments

masimplo picture masimplo  路  3Comments