Been postponing it for a while to formalize this into a library, so Yesterday I finally found some time to do it.
It’s a very simple library that can come in handy for people like myself who write assign/update wrapper functions individually for each assign in LiveView.
Ex:
defmodule MyAppWeb.MyLiveComponent do
use MyAppWeb, :live_component
import Assigns
# ..
defassignp [ :foo, :bar, :baz, :connected?]
defassign_newp :foo
defupdatep [ :bar, :baz]
end