React Router API Reference
Preparing search index...
react-router
UNSAFE_RouteDiscoveryRuntime
Class UNSAFE_RouteDiscoveryRuntime
Internal
Index
Constructors
constructor
Properties
discovered
Paths
enabled
next
Paths
on
Error?
ready
state
Methods
discover
discover
Routes
load
All
Routes
mark
Ready
register
report
Error
subscribe
Constructors
constructor
new
UNSAFE_RouteDiscoveryRuntime
(
ssrInfo
:
RouteDiscoverySsrInfo
,
__namedParameters
?:
{
fetch
?:
unstable_RouterFetch
;
loadManifest
?:
()
=>
Promise
<
UNSAFE_AssetsManifest
>
;
}
,
)
:
UNSAFE_RouteDiscoveryRuntime
Parameters
ssrInfo
:
RouteDiscoverySsrInfo
__namedParameters
:
{
fetch
?:
unstable_RouterFetch
;
loadManifest
?:
()
=>
Promise
<
UNSAFE_AssetsManifest
>
;
}
= {}
Returns
UNSAFE_RouteDiscoveryRuntime
Properties
Readonly
discovered
Paths
discoveredPaths
:
Set
<
string
>
= ...
Readonly
enabled
enabled
:
boolean
Readonly
next
Paths
nextPaths
:
Set
<
string
>
= ...
Optional
on
Error
onError
?:
ClientOnErrorFunction
ready
ready
:
boolean
= false
state
state
:
DiscoveryState
Methods
discover
discover
(
paths
:
string
[]
,
source
:
"navigation"
|
"fetcher"
|
"eager"
|
"imperative"
,
reloadUrl
:
string
|
null
,
signal
?:
AbortSignal
,
patch
?:
Object
,
)
:
Promise
<
unstable_DiscoveryResult
>
Parameters
paths
:
string
[]
source
:
"navigation"
|
"fetcher"
|
"eager"
|
"imperative"
reloadUrl
:
string
|
null
Optional
signal
:
AbortSignal
patch
:
Object
= ...
Returns
Promise
<
unstable_DiscoveryResult
>
discover
Routes
discoverRoutes
(
paths
:
string
[]
,
options
?:
{
signal
?:
AbortSignal
}
,
)
:
Promise
<
unstable_DiscoveryResult
>
Parameters
paths
:
string
[]
options
:
{
signal
?:
AbortSignal
}
= {}
Returns
Promise
<
unstable_DiscoveryResult
>
load
All
Routes
loadAllRoutes
()
:
Promise
<
void
>
Returns
Promise
<
void
>
mark
Ready
markReady
()
:
void
Returns
void
register
register
(
registration
:
Registration
)
:
()
=>
void
Parameters
registration
:
Registration
Returns
()
=>
void
report
Error
reportError
(
error
:
unknown
)
:
void
Parameters
error
:
unknown
Returns
void
subscribe
subscribe
(
listener
:
()
=>
void
)
:
()
=>
void
Parameters
listener
:
()
=>
void
Returns
()
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
discovered
Paths
enabled
next
Paths
on
Error
ready
state
Methods
discover
discover
Routes
load
All
Routes
mark
Ready
register
report
Error
subscribe
React Router API Reference
Loading...