Class: Funicular::ErrorBoundary
- Defined in:
- sig/error_boundary.rbs
Instance Attribute Summary collapse
-
#error_caught_during_render ⇒ Boolean?
Returns the value of attribute error_caught_during_render.
Attributes inherited from Component
#children, #current_children, #dom_element, #mounted, #props, #refs, #runtime, #vdom
Instance Method Summary collapse
- #catch_error ⇒ Boolean
- #initialize_state ⇒ Hash[Symbol, untyped]
- #render ⇒ VDOM::VNode, ...
- #reset ⇒ void
Methods inherited from Component
#add_child_from_view, #add_via, #bind_events, #build_button_to, #build_form_for, #build_link_to, #build_vdom, #collect_refs, #component_mounted, #component_raised, #component_unmounted, #component_updated, #component_will_mount, #component_will_unmount, #component_will_update, #hydrate, #initialize, #load_single_suspense, #load_suspense_data, #mount, #normalize_vnode_for_view, #patch, #reload_suspense, #remove_via, #render_suspense, #resources, #seed_state, #state, styles, #styles, styles_definitions, suspense_definitions, #suspense_error, #suspense_error?, #suspense_loading?, #unmount, use_suspense
Constructor Details
This class inherits a constructor from Funicular::Component
Instance Attribute Details
#error_caught_during_render ⇒ Boolean?
Returns the value of attribute error_caught_during_render.
3 4 5 |
# File 'sig/error_boundary.rbs', line 3 def error_caught_during_render @error_caught_during_render end |
Instance Method Details
#catch_error ⇒ Boolean
6 |
# File 'sig/error_boundary.rbs', line 6
def catch_error: (Exception error, ?Hash[Symbol, untyped]? error_info) -> bool
|
#initialize_state ⇒ Hash[Symbol, untyped]
5 |
# File 'sig/error_boundary.rbs', line 5
def initialize_state: () -> Hash[Symbol, untyped]
|
#render ⇒ VDOM::VNode, ...
8 |
# File 'sig/error_boundary.rbs', line 8
def render: (ViewContext h) -> (VDOM::VNode | String | Integer | Float | Array[untyped] | nil)
|
#reset ⇒ void
This method returns an undefined value.
7 |
# File 'sig/error_boundary.rbs', line 7
def reset: () -> void
|