@remix-run/router 1.15.3-pre.0 → 1.16.0-pre.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/router.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { History, Location, Path, To } from "./history";
2
2
  import { Action as HistoryAction } from "./history";
3
- import type { AgnosticDataRouteMatch, AgnosticDataRouteObject, AgnosticRouteObject, DeferredData, DetectErrorBoundaryFunction, FormEncType, HTMLFormMethod, MapRoutePropertiesFunction, RouteData, Submission, UIMatch } from "./utils";
3
+ import type { AgnosticDataRouteMatch, AgnosticDataRouteObject, AgnosticRouteObject, DataStrategyFunction, DeferredData, DetectErrorBoundaryFunction, FormEncType, HTMLFormMethod, MapRoutePropertiesFunction, RouteData, Submission, UIMatch } from "./utils";
4
4
  /**
5
5
  * A Router instance manages all navigation and data loading/mutations
6
6
  */
@@ -258,6 +258,7 @@ export interface FutureConfig {
258
258
  v7_partialHydration: boolean;
259
259
  v7_prependBasename: boolean;
260
260
  v7_relativeSplatPath: boolean;
261
+ unstable_skipActionErrorRevalidation: boolean;
261
262
  }
262
263
  /**
263
264
  * Initialization options for createRouter
@@ -274,6 +275,7 @@ export interface RouterInit {
274
275
  future?: Partial<FutureConfig>;
275
276
  hydrationData?: HydrationState;
276
277
  window?: Window;
278
+ unstable_dataStrategy?: DataStrategyFunction;
277
279
  }
278
280
  /**
279
281
  * State returned from a server-side query() call
@@ -297,7 +299,11 @@ export interface StaticHandlerContext {
297
299
  export interface StaticHandler {
298
300
  dataRoutes: AgnosticDataRouteObject[];
299
301
  query(request: Request, opts?: {
302
+ loadRouteIds?: string[];
300
303
  requestContext?: unknown;
304
+ skipLoaders?: boolean;
305
+ skipLoaderErrorBubbling?: boolean;
306
+ unstable_dataStrategy?: DataStrategyFunction;
301
307
  }): Promise<StaticHandlerContext | Response>;
302
308
  queryRoute(request: Request, opts?: {
303
309
  routeId?: string;