-
Notifications
You must be signed in to change notification settings - Fork 56
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
Option to warm up the next route #110
Comments
I like that ! |
@eric: Do you have an idea on how that could be implmented? I'd love to On Tue, Apr 5, 2016 at 2:48 PM Nicolas Charpentier [email protected]
|
@SEthX I'm not quite sure how to implement this but I think it might be a similar concept when you have a route stack and you are "swipping" to go back and you can already see the previous screen layered underneath, I think navigator handles this but would need to look at the source code and reverse engineer it going the other direction |
I think we maybe able to achieve this with prop
Navigator API provide methods to navigate to an existing scene without unmounting :
I guess We could pre-render or warm up most used scenes and navigate with Thoughts? |
@charpeni great find! That seems like it would work. From an interface perspective. I was thinking I could call a function in the componentDidMount where I can preload a route and the next time "toRoute" is called matching a preloaded scene, it would go to the mounted scene instead of mounting another. In my welcome screen, if they don't hit "Start" for an example and the start button goes to the Home Screen, at some point they will land at Home and I would like it to be loaded and ready. What do ya think? |
Nice perspective, I have the same use case as I need to pre-render a WebView to avoid the waiting of the user while loading.
It should push that existing scene to the end of the route stack to be able to back to the previous scene. |
@charpeni yeah that makes sense |
@charpeni are you able to start this? I can help out where needed |
I can't start this right now, I have other priorities to deal with but I'll need it in a few weeks, so I'll keep you up-to-date. Feel free to look at it if you have time :) |
@charpeni yeah same here, i should be able to look into this in a week or 2 |
@SEthX ? :D |
I might give it a shot this week, my workload is decreasing so i have some
|
@SEthX hey seth, were you able to get a chance to look at this? :) |
Ive been sick all week unfortunately. Hopefully i feel better soon!
|
@SEthX get well soon!! 💯 |
I currently have a welcome screen where 8 out of 10 times, they are going to click on a specific button.
A web browser has the ability to pre-load the next route and render the page in the background.
It would be nice if i could some how pre-load the next "toRoute" matching a specific criteria so when the user taps on the button, the next page is already loaded with data and can make the app feel snappier in the beginning.
The text was updated successfully, but these errors were encountered: