最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

elixir - Conditional Embedded Live Views - Stack Overflow

programmeradmin0浏览0评论

Hello does anybody know if embedded live views created via:

<%= live_render(@socket, EmbeddedLiveViewModule, id: "embedded") %>

can be run inside conditional flow like this:

<div :if={@render_embedde?}>
    <%= live_render(@socket, EmbeddedLiveViewModule, id: "embedded") %>
</div>

I'll add that this is condition is inside LiveComponent which is inside other LiveView

When I click on button which changes state (at start embedded live view is not shown) it appears. When I try to hide it the assign is changed and my LiveComponent is being rerendered but when I inspect the condition it stills shows previous value

发布评论

评论列表(0)

  1. 暂无评论