Crate yew_api_hook

Source

Modules§

prelude

Structs§

DynLazyResponse
LazyResponse
A lazy api response which you can trigger through the run callback
Options
Use API Options

Traits§

Request
The core request trait which has to be implemented for all handler which can be executed through the use api hook.

Functions§

use_api
The basic api hook which requests data on mount and preserves its data through out the component lifetime
use_api_dynamic
Useful when not wanting to run a request on mount, e.g. for a logout button You may run the request multiple times through multiple emits of the callback
use_api_dynamic_with_options
Useful when not wanting to run a request on mount, e.g. for a logout button You may run the request multiple times through multiple emits of the callback
use_api_lazy
Useful when not wanting to run a request on mount, e.g. for a logout button You may run the request multiple times through multiple emits of the callback
use_api_lazy_with_options
Useful when not wanting to run a request on mount, e.g. for a logout button You may run the request multiple times through multiple emits of the callback
use_api_with_options
The basic api hook which requests data on mount and preserves its data through out the component lifetime.