Replies: 1 comment 1 reply
-
Good point. We should write a guide for this in the docs. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I haven't been able to use either the v1 or v2 versions of fragments/selective rendering, but I was wondering, is there a way to use it with turbo streams? That seems like one good use case for selective rendering, when you only want to re-render part of a component. It seems like you need to pass arguments to the
call
but I haven't figured out how to do that when using theturbo_stream
helper in Phlex. Note that I'm using Phlex to render the turbo stream content as well, so I'm talking about the Phlex adapter for theturbo_stream
helper.I do think that in most cases if you really end up needing to render part of the DOM by itself you probably just want to make a component out of the thing you're rendering so it may be a moot point, but it might be a nice option in a pinch if you don't want to refactor components immediately.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions