You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using Turbo in the past, and I am migrating to Hotwire Native. One thing I can't seem to find is an equivalent alternative to sessionDidFinishRequest for some post-processing logic after a page loads.
My current workaround is to fork this repo and add a requestDidFinish to NavigatorDelegate (lqrs@68b0fdb). Ideally, this should be provided by upstream so I don't have to maintain a separate fork.
May I know if I overlooked anything and if there is a recommended approach to this? I am also happy to open a pull request with my changes.
The text was updated successfully, but these errors were encountered:
@joemasilotti thanks for replying. Yes, in addition to web logic, we also have native logic that is triggered upon a page request finishes. The native logic consists of login status tracking, push notification permission requests, submitting device tokens using an HTTP client, and more.
We like the concept of Turbo/Hotwire and pioneered using the Turbo framework and liked it. We want to transit to depend on Hotwire. However, the Turbo framework supports these out of the box, and lacking such support in Hotwire is quite a bit inconvenient.
login status tracking, push notification permission requests, submitting device tokens using an HTTP client
A bridge component would work just as well for each of those. And it keeps more logic on the server - you won't need to track if the user is signed in (or not) in the app at all.
I have been using Turbo in the past, and I am migrating to Hotwire Native. One thing I can't seem to find is an equivalent alternative to
sessionDidFinishRequest
for some post-processing logic after a page loads.My current workaround is to fork this repo and add a
requestDidFinish
toNavigatorDelegate
(lqrs@68b0fdb). Ideally, this should be provided by upstream so I don't have to maintain a separate fork.May I know if I overlooked anything and if there is a recommended approach to this? I am also happy to open a pull request with my changes.
The text was updated successfully, but these errors were encountered: