Comments (10)
Can you reproduce this in the demo app?
from turbo-ios.
If I just navigate into another page and then back again without interacting with the new page it doesn't happen, but if you interact with the page or do a page refresh it does seem to happen in the demo app too.
Simulator.Screen.Recording.-.iPhone.14.-.2023-10-31.at.11.04.41.mp4
from turbo-ios.
That’s expected behavior for a page refresh. Reloading tells the session to clear the cache, navigating back then requires a load from the server.
Can you expand on “interacting” with the page?
from turbo-ios.
Initially, I thought that for a page reload to occur, an interaction like tapping on the page or scrolling needed to take place, but that does actually not seem to be the case with the 404 error native view in the demo. It triggers a page reload when navigating into the view and then back.(but only the first time) This is what we're also seeing in our app, but not only on native views but also in our web fragments.
Simulator.Screen.Recording.-.iPhone.14.-.2023-10-31.at.15.18.40.mp4
from turbo-ios.
Weird, I'm not seeing the page reload even when accessing the 404 error. Can you confirm you have no code changes on the demo server or app?
from turbo-ios.
Indeed, no code changes.
from turbo-ios.
Is it possible to upload your iOS code somewhere? I can't reproduce and if you are hitting the demo server then the Swift code is the only remaining variable.
from turbo-ios.
I could share the Swift code – but all I did was to clone the repo and run the demo app with the default hosted test server. And I've made zero changes in the code.
from turbo-ios.
I have resolved the problem in our app. The problem was on our end because we made an extra redirect on the first back navigation to inset a locale in the URL.
from turbo-ios.
Gotcha, thanks for following up!
from turbo-ios.
Related Issues (20)
- Pull to refresh does not work on iphone 12 HOT 1
- Visit url inside a modal Controller HOT 1
- Turbo 8 morphing refreshes not supported? HOT 3
- Possible to have turbo-ios ignore certain link clicks? HOT 5
- Snapshots are not taken when VisitableViewController is dismissed (ie. modal session) HOT 1
- Double request when submitting a form via a modal HOT 1
- Add support for query parameters in the PathConfiguration HOT 3
- Handling mailto-Links HOT 3
- Navigation bar affected by cache HOT 2
- Propose a new visit for cross-origin redirects
- File input Take photo issue on ios HOT 1
- Demo doesn't work below iOS 16.4 HOT 5
- Advance and replace actions do not update the session URL or call delegate methods HOT 2
- loaded js gets stale on subsequent deploys HOT 3
- The content is not displayed if the keyboard is shown and the view is in a modal
- When taking a photo, the underlying view (aka form) is reset HOT 1
- App can't restart with path configuration
- Navigation issues when file is uploaded. HOT 1
- How to access webview with TurboNavigator? HOT 1
- Persist visit options loads same page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turbo-ios.