View Source LiveViewModel.Encoder protocol (live_view_model v0.1.0)

Allows customization of the representation of a given type as the state in a LiveViewModel.Channel. It is called before serialization and json diffing.

Summary

Types

t()

All the types that implement this protocol.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

encode(data, opts \\ [])

View Source