← Graph

How does Phlex integrate with Turbo?

question 4 connections

Audience question on Phlex + Turbo interop. Joel Drapper answers that Rails has an abstraction called 'renderable' — largely pioneered by the ViewComponent team — which anything that accepts `render` plus a view context and block can implement. Phlex implements this interface, so all Turbo helpers work with Phlex automatically. Additionally, Phlex has an early/experimental selective-rendering feature that can be configured so a Turbo Frame request only renders the requested frame, making Phlex potentially a better Turbo Frame integration than alternatives.

answer_summary
Phlex implements Rails' 'renderable' interface (from the ViewComponent team), so all Turbo helpers work; an experimental selective-rendering mode can render only the requested Turbo Frame.
question How does Phlex integrate with Turbo?
about
Phlex tool
Topic: Phlex behavior in the Turbo ecosystem.
question How does Phlex integrate with Turbo?
about
Turbo tool
Topic: Turbo integration.
question How does Phlex integrate with Turbo?
about
Selective-rendering feature can render only the requested Turbo Frame.
question How does Phlex integrate with Turbo?
asked_at
Audience Q&A question.

Provenance

Read by
3 extractions