Skip to content

Commit 44d4dc8

Browse files
committed
revert extend error
1 parent 376ea06 commit 44d4dc8

File tree

1 file changed

+1
-2
lines changed
  • packages/react-router/lib/router

1 file changed

+1
-2
lines changed

packages/react-router/lib/router/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,13 +1809,12 @@ export const normalizeSearch = (search: string): string =>
18091809
export const normalizeHash = (hash: string): string =>
18101810
!hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
18111811

1812-
export class DataWithResponseInit<D> extends Error {
1812+
export class DataWithResponseInit<D> {
18131813
type: string = "DataWithResponseInit";
18141814
data: D;
18151815
init: ResponseInit | null;
18161816

18171817
constructor(data: D, init?: ResponseInit) {
1818-
super("DataWithResponseInit");
18191818
this.data = data;
18201819
this.init = init || null;
18211820
}

0 commit comments

Comments
 (0)