react-router-dom 0.0.0-experimental-e0f088aa → 0.0.0-experimental-832a0ee6

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/index.d.ts CHANGED
@@ -269,7 +269,7 @@ export declare function useFetcher<TData = any>({ key, }?: {
269
269
  * Provides all fetchers currently on the page. Useful for layouts and parent
270
270
  * routes that need to provide pending/optimistic UI regarding the fetch.
271
271
  */
272
- export declare function useFetchers(): Fetcher[];
272
+ export declare function useFetchers(): Omit<Fetcher, "data">[];
273
273
  /**
274
274
  * When rendered inside a RouterProvider, will restore scroll positions on navigations
275
275
  */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v0.0.0-experimental-e0f088aa
2
+ * React Router DOM v0.0.0-experimental-832a0ee6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -208,7 +208,8 @@ function getFormSubmissionInfo(target, basename) {
208
208
 
209
209
  const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"],
210
210
  _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"],
211
- _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset", "unstable_viewTransition"];
211
+ _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset", "unstable_viewTransition"],
212
+ _excluded4 = ["data"];
212
213
  function createBrowserRouter(routes, opts) {
213
214
  return createRouter({
214
215
  basename: opts == null ? void 0 : opts.basename,
@@ -885,7 +886,6 @@ var DataRouterHook;
885
886
  (function (DataRouterHook) {
886
887
  DataRouterHook["UseScrollRestoration"] = "useScrollRestoration";
887
888
  DataRouterHook["UseSubmit"] = "useSubmit";
888
- DataRouterHook["UseSubmitFetcher"] = "useSubmitFetcher";
889
889
  DataRouterHook["UseFetcher"] = "useFetcher";
890
890
  DataRouterHook["useViewTransitionState"] = "useViewTransitionState";
891
891
  })(DataRouterHook || (DataRouterHook = {}));
@@ -1145,7 +1145,10 @@ function useFetcher(_temp3) {
1145
1145
  */
1146
1146
  function useFetchers() {
1147
1147
  let state = useDataRouterState(DataRouterStateHook.UseFetchers);
1148
- return [...state.fetchers.values()];
1148
+ return [...state.fetchers.values()].map(fetcher => {
1149
+ let rest = _objectWithoutPropertiesLoose(fetcher, _excluded4);
1150
+ return rest;
1151
+ });
1149
1152
  }
1150
1153
  const SCROLL_RESTORATION_STORAGE_KEY = "react-router-scroll-positions";
1151
1154
  let savedScrollPositions = {};