Default LiveView-style runtime backend.
Adapts the loop to an app's mount/1, handle_event/2 (raw input events),
handle_event/3 (named callbacks), and the optional lifecycle hooks. Optional
hooks that an app does not define fall through to returning the state unchanged.
Summary
Functions
Calls the app's handle_event/2 with the raw event tuple.
Calls the app's handle_event/3 with the callback name and its payload.
Calls the app's mount/1 with the mount props.
Calls the app's on_message/2 if it defines one, otherwise returns state unchanged.
Calls the app's on_ready/1 if it defines one, otherwise returns state unchanged.
The app's refresh_rate/0 if it defines one, otherwise nil.
Calls the app's on_scroll_active/1 if it defines one, otherwise returns state unchanged.
Calls the app's on_scroll_idle/1 if it defines one, otherwise returns state unchanged.
Calls the app's on_timer/2 if it defines one, otherwise returns state unchanged.
Functions
Calls the app's handle_event/2 with the raw event tuple.
Calls the app's handle_event/3 with the callback name and its payload.
Calls the app's mount/1 with the mount props.
Calls the app's on_message/2 if it defines one, otherwise returns state unchanged.
Calls the app's on_ready/1 if it defines one, otherwise returns state unchanged.
@spec refresh_rate(module()) :: Drafter.Runtime.refresh_rate()
The app's refresh_rate/0 if it defines one, otherwise nil.
Calls the app's on_scroll_active/1 if it defines one, otherwise returns state unchanged.
Calls the app's on_scroll_idle/1 if it defines one, otherwise returns state unchanged.
Calls the app's on_timer/2 if it defines one, otherwise returns state unchanged.