PhoenixReplay.Web.Live.ReplayComponent (PhoenixReplay v0.6.2)

Copy Markdown View Source

Stands in for a recorded LiveComponent in the replay frame.

PhoenixReplay.Web.Rendering.rewrite/2 puts it in place of each component, so the frame renders the original module's template with the assigns the parent passes merged with the assigns recorded for that component. The frame refreshes it with send_update/3 after every seek. Events from the recorded template are ignored.

Summary

Functions

Assigns that route a component through this replay component.

Functions

replay_assigns(module, id, states)

@spec replay_assigns(module(), term(), PhoenixReplay.Web.Rendering.states()) :: map()

Assigns that route a component through this replay component.