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

reloading page in web target causes state to vanish #175

Closed
formvoltron opened this issue Apr 14, 2021 · 8 comments
Closed

reloading page in web target causes state to vanish #175

formvoltron opened this issue Apr 14, 2021 · 8 comments

Comments

@formvoltron
Copy link

yikes.

how can this be fixed? I'm using the whole stack here: get_it, get_it_mixin, flutter_command, functional_listener

tweet thread outlines the problem / potential solutions:
https://twitter.com/ThomasBurkhartB/status/1382301168915914755

Couldn't this persisting / rehydrating be automated in some way? Or does the lack of a cycle callback mean that the problem lies more with the flutter team to develop a general solution for handling page reloads for the flutter web framework?

@formvoltron
Copy link
Author

formvoltron commented Apr 14, 2021

@escamoteur
Copy link
Collaborator

This still an issue? I mean that is related to get_it?

@formvoltron
Copy link
Author

formvoltron commented Apr 14, 2021 via email

@escamoteur
Copy link
Collaborator

My point is that storing and retrieving state outside of the scope of get get it gives you the means to access your objects.

@formvoltron
Copy link
Author

formvoltron commented Apr 15, 2021 via email

@escamoteur
Copy link
Collaborator

you are welcome to publish a package that does the job ans plugs in nicely with get_it :-)

@formvoltron
Copy link
Author

formvoltron commented Apr 15, 2021

I will wait & see what provider or bloc will do. Also, curious what the Flutter team devises.

Until then, I'll check out Navigator 2.0 & the DashCast example that was presented in the Flutter & Web prez here: https://youtu.be/HAstl_NkXl0?t=603

Alternatively, does it make sense to use get_it inside of AngularDart?

@escamoteur
Copy link
Collaborator

Sure, you can use it anywhere as its pure dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants