Macaw.State.Persistence.Url (macaw v0.6.0)

Copy Markdown View Source

State in the URL (spec/03 §3): the carrier is a params map, as Phoenix decodes a query string (handle_params/3's params) and encodes one (a verified route's query, or Plug.Conn.Query.encode/1), each surface's values nested under its name:

?status[table_services.sort]=host&status[table_services.order]=desc

A link carries the view, so a reload or a shared link restores it. Only state that may be seen in a URL belongs here: a host keeps visitor-specific state out of it, or marks a source persist: false.