SelectoComponents.Session.Codec (selecto_components v0.4.8)

Session-oriented codec helpers for SelectoComponents.

This module owns form/url decode and saved-view encode/decode behavior while the rest of the runtime still uses view_config as a compatibility shape.

Link to this section Summary

Link to this section Functions

Link to this function

filter_params_to_view_config(params, socket)

@spec filter_params_to_view_config(map(), Phoenix.LiveView.Socket.t()) :: map()
Link to this function

form_params_to_view_config(params, socket)

@spec form_params_to_view_config(map(), Phoenix.LiveView.Socket.t()) :: map()
Link to this function

params_to_view_config(params, socket)

@spec params_to_view_config(map(), Phoenix.LiveView.Socket.t()) :: map()
Link to this function

saved_params_to_view_config(saved_params, socket)

@spec saved_params_to_view_config(map(), Phoenix.LiveView.Socket.t()) :: map()
Link to this function

view_config_to_saved_params(view_config)

@spec view_config_to_saved_params(map()) :: map()