software-mansion-labs / react-native-turbo-demo

React Native Turbo - an open source library that can bring your turbo-enabled web application into the React Native world.
MIT License
101 stars 11 forks source link

Change logic of `refresh` method #172

Closed pklatka closed 6 months ago

pklatka commented 6 months ago

Summary

This PR changes the logic of refresh method - we no longer dispatch replace visit, instead, the JS script is injected which calls refresh() method on Turbo.session object.

Test plan

Added a setTimeout in WebView.tsx and checked if website is refreshed properly.

pfeiffer commented 6 months ago

LGTM!