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.
Summary
This PR changes the logic of
refresh
method - we no longer dispatchreplace
visit, instead, the JS script is injected which callsrefresh()
method onTurbo.session
object.Test plan
Added a
setTimeout
inWebView.tsx
and checked if website is refreshed properly.