Method UseActionData
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
UseActionData<T>()
Returns the result of the action that committed the current location, when the action belongs to the
route at the current Outlet depth, cast to T: React Router's
useActionData. Returns default otherwise.
public static T? UseActionData<T>()
Returns
- T
Type Parameters
TExpected action result type.
Exceptions
- InvalidOperationException
No
V.RouterProvideris mounted above the caller.