use_table_data

Function use_table_data 

Source
pub fn use_table_data<'hook, C, M>(
    data: M,
) -> impl 'hook + Hook<Output = (UseTableData<C, M>, ExpansionCallback<M::Key, C>)>
where C: Clone + Eq + 'static + 'hook, M: PartialEq + Clone + TableDataModel<C> + 'static + 'hook, M::Key: Hash,
Expand description

ยงNote

When used in function components and hooks, this hook is equivalent to:

pub fn use_table_data<C, M>(
    data: M,
) -> (UseTableData<C, M>, ExpansionCallback<M::Key, C>)
where
    C: Clone + Eq + 'static,
    M: PartialEq + Clone + TableDataModel<C> + 'static,
    M::Key: Hash,
{
    /* implementation omitted */
}