Replies: 1 comment
-
|
Ok there is quite a simple solution Maybe its beneficial in other use cases |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In current developments with Hotwire Native, I would like to call
data: {turbo_stream: !hotwire_native_app}on links in Rails. So that I get a turbo stream response on desktop (to show a modal) and an HTML response on the native app to render a native modal.I know it’s possible to deactivate turbo streams by just not adding it to the link at all, but IMO the code example is pretty clean.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions