Giter VIP home page Giter VIP logo

Comments (1)

joshchernoff avatar joshchernoff commented on July 17, 2024

Clicking on any navigation seems to trigger what ever remount or what ever that updates the nav with active users.
My assumption is that its not getting what ever message it needs upon the player starting/stopping.

Edit;
After looking into this you will notice that sidebar_active_users is just a function component

<nav class="px-2">
<%= if @current_user do %>
<.sidebar_nav_links current_user={@current_user} active_tab={@active_tab}/>
<% end %>
<.sidebar_active_users id="desktop-active-users" users={@active_users}/>
</nav>
is not a part of a stateful component nor a live view itself. In short the only way for it to update is via a some event like live_redirect. Thus the state of this view won't update on its own without remounting. This is also why when using the nav which causes a remount to happen updates the view.

from live_beats.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.