Table of Contents

Method UseMatches

Namespace
Velvet
Assembly
Velvet.Docs.dll

UseMatches()

Returns every route matched by the current location, parent first, each with the loader data and Handle it carries: React Router's useMatches.

public static IReadOnlyList<UiMatch> UseMatches()

Returns

IReadOnlyList<UiMatch>

Exceptions

InvalidOperationException

No V.RouterProvider is mounted above the caller.