Skip to content

useSuggestRoutes

Overview

A hook that returns the N best matching routes for the current path with similarity scores. Intended for use with SuggestionList in system 404 views.

Signature

useSuggestRoutes(options)

Parameters

NameTypeRequiredDescription
optionsobjectno

options Properties

NameTypeRequiredDefaultDescription
limitnumberMaximum number of suggestions to return.

Returns

Readonly

Source

client/lib/use/useSuggestRoute.js:146

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2