Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ibuziuk opened this issue Mar 3, 2015 · 7 comments

Comments

@ibuziuk
Copy link

ibuziuk commented Mar 3, 2015

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 ibuziuk changed the title bug: Livereload via "ionic serve" does not work properly (loosing back button, state etc.) bug: bug: Livereload via "ionic serve" does not work properly (loosing back button, state etc.) Mar 3, 2015
@ibuziuk ibuziuk changed the title bug: bug: Livereload via "ionic serve" does not work properly (loosing back button, state etc.) bug: Livereload via "ionic serve" does not work properly (loosing back button, state etc.) Mar 3, 2015
@Ionitron
Copy link
Collaborator

Ionitron commented Mar 4, 2015

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.

@ibuziuk
Copy link
Author

ibuziuk commented Mar 5, 2015

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

@mtpultz
Copy link

mtpultz commented May 17, 2015

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.

@holographix
Copy link

+1
it would be very useful to have this addressed

@mhartington
Copy link
Member

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

@digeff
Copy link

digeff commented Mar 22, 2016

+1

1 similar comment
@burithetech
Copy link

+1

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants