Last active
June 6, 2020 07:34
-
-
Save tslim/440ba0a5c5976abfa56e5c2667be76fd to your computer and use it in GitHub Desktop.
Learnings from my first LiveView app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mount(_params, session, socket) do | |
{:ok, | |
socket | |
|> set_current_user(session) | |
|> subscribe_to_pubsub() | |
|> assign(:page, 1) | |
|> assign(:order_by, "name") | |
|> assign(:records, [])} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment