[][src]Crate seed_hooks

Modules

drop_type
list
prelude

Structs

DropType
StateAccess

Accessor struct that provides access to getting and setting the state of the stored type

Traits

ChangedState
CloneState
StateAccessDropType
StateAccessEventHandlers
UpdateElLocal

Functions

after_render
after_render_once
bind
clone_state_with_topo_id

Clones the state of type T keyed to the given TopoId

do_once

call the provided function once and once only returns a droptype which will allow the do_once to repeat if .execute_if_activated() is called on the droptype. Example

execute_and_remove_drop_types
get_html_element_by_id
handle_drop_types
new_state
purge_and_reset_unseen_ids

Rudamentary Garbage Collection purges all unseen ids' state then resets the suneen ids list.

request_animation_frame
reset_unseen_id_list

Rudamentary Garbage Collection

set_state_with_topo_id

Sets the state of type T keyed to the given TopoId

unseen_ids
update_state_with_topo_id

Provides mutable access to the stored state type T.

use_drop_type
use_state

Constructs a T accessor. T is stored keyed to the current topological context. The accessor always references this context therefore can you can set/update/ or get this T from anywhere.

use_state_current

Uses the current topological id to create a new state accessor