How to Display User Tracking
Let's learn how to display tracked user data in the Phoenix application.
We'll cover the following
We’ve come a surprisingly long way with user activity tracking, but there’s still a bit of work to do. We’ll implement a component, UserActivityLive
, that will use its update/2
callback to ask Presence for the list of products and their present users. It will store this list in the state with the socket assigns. Then, we’ll render that list in our component’s template.
Let’s kick things off by defining our component.
Get hands-on with 1400+ tech skills courses.