Table of Contents

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

T

Expected action result type.

Exceptions

InvalidOperationException

No V.RouterProvider is mounted above the caller.