Preparing search index...
The search index is not available
React Router API Reference
React Router API Reference
react-router
StaticHandler
Interface StaticHandler
A StaticHandler instance manages a singular SSR navigation/fetch event
interface
StaticHandler
{
dataRoutes
:
AgnosticDataRouteObject
[]
;
query
(
request
:
Request
,
opts
?:
{
dataStrategy
?:
DataStrategyFunction
;
requestContext
?:
unknown
;
skipLoaderErrorBubbling
?:
boolean
;
}
)
:
Promise
<
Response
|
StaticHandlerContext
>
;
queryRoute
(
request
:
Request
,
opts
?:
{
dataStrategy
?:
DataStrategyFunction
;
requestContext
?:
unknown
;
routeId
?:
string
;
}
)
:
Promise
<
any
>
;
}
Index
Properties
data
Routes
Methods
query
query
Route
Properties
data
Routes
data
Routes
:
AgnosticDataRouteObject
[]
Methods
query
query
(
request
,
opts
?
)
:
Promise
<
Response
|
StaticHandlerContext
>
Parameters
request
:
Request
Optional
opts
:
{
dataStrategy
?:
DataStrategyFunction
;
requestContext
?:
unknown
;
skipLoaderErrorBubbling
?:
boolean
;
}
Optional
data
Strategy
?:
DataStrategyFunction
Optional
request
Context
?:
unknown
Optional
skip
Loader
Error
Bubbling
?:
boolean
Returns
Promise
<
Response
|
StaticHandlerContext
>
query
Route
query
Route
(
request
,
opts
?
)
:
Promise
<
any
>
Parameters
request
:
Request
Optional
opts
:
{
dataStrategy
?:
DataStrategyFunction
;
requestContext
?:
unknown
;
routeId
?:
string
;
}
Optional
data
Strategy
?:
DataStrategyFunction
Optional
request
Context
?:
unknown
Optional
route
Id
?:
string
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
data
Routes
Methods
query
query
Route
React Router API Reference
Loading...
A StaticHandler instance manages a singular SSR navigation/fetch event