phoenixframework / phoenix_live_dashboard

Realtime dashboard with metrics, request logging, plus storage, OS and VM insights

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument

jaimeiniesta opened this issue · comments

Environment

  • Elixir version (elixir -v): Elixir 1.10.4 (compiled with Erlang/OTP 23)
  • Phoenix version (mix deps): 1.5.8
  • Phoenix LiveView version (mix deps): 0.15.7
  • Phoenix Dashboard version (mix deps): 0.4.0
  • Operating system: macOS 11.4
  • Browsers you attempted to reproduce this bug on (the more the merrier): n/a

Actual behavior

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/components/nav_bar_component.ex:142: Phoenix.LiveDashboard.NavBarComponent.render_content/3

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/pages/home_page.ex:176: Phoenix.LiveDashboard.HomePage.render/1

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/pages/home_page.ex:184: Phoenix.LiveDashboard.HomePage.render/1

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/pages/home_page.ex:192: Phoenix.LiveDashboard.HomePage.render/1

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/pages/os_mon_page.ex:213: Phoenix.LiveDashboard.OSMonPage.render/1

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/pages/os_mon_page.ex:235: Phoenix.LiveDashboard.OSMonPage.render/1

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/components/card_usage_component.ex:7: Phoenix.LiveDashboard.CardUsageComponent.render/1

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/page_live.ex:211: Phoenix.LiveDashboard.PageLive.render_page/3

warning: passing the @socket to live_component is no longer necessary, please remove the socket argument
  lib/phoenix/live_dashboard/page_live.ex:236: Phoenix.LiveDashboard.PageLive.live_modal/3

Expected behavior

No compiler warnings.

Fixed on master, thanks!