Add initial project
This commit is contained in:
11
lib/wish_web/live/home_live/index.ex
Normal file
11
lib/wish_web/live/home_live/index.ex
Normal file
@@ -0,0 +1,11 @@
|
||||
defmodule WishWeb.HomeLive.Index do
|
||||
use WishWeb, :live_view
|
||||
|
||||
alias Wish.Wishlist
|
||||
alias Wish.Wishlist.Item
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, stream(socket, :items, Wishlist.list_items())}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user