ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

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

Open ibuziuk opened this issue 11 years ago • 7 comments

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

ibuziuk avatar Mar 03 '15 11:03 ibuziuk

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 avatar Mar 04 '15 17:03 Ionitron

@Ionitron I see. But is there are any way to perform 'smart' refresh (with history saving)?

ibuziuk avatar Mar 05 '15 08:03 ibuziuk

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.

mtpultz avatar May 17 '15 23:05 mtpultz

+1 it would be very useful to have this addressed

holographix avatar Sep 01 '15 17:09 holographix

This would be an issue bring up on the cli repo, not the framework.

mhartington avatar Sep 01 '15 17:09 mhartington

+1

digeff avatar Mar 22 '16 22:03 digeff

+1

burithetech avatar Nov 17 '16 18:11 burithetech