Skip to content

Commit

Permalink
remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
willybrauner committed Oct 17, 2023
1 parent 4092e29 commit fb285e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import debug from "@wbe/debug";
import { BrowserHistory, HashHistory, MemoryHistory } from "history";
import { Match } from "path-to-regexp";
import React, { useMemo, useRef } from "react";
import React, { useMemo } from "react";
import { formatRoutes, TQueryParams } from "../core/core";
import { getNotFoundRoute, getRouteFromUrl } from "../core/core";
import { Routers } from "../core/Routers";
Expand Down Expand Up @@ -336,7 +336,6 @@ function Router(props: {
}
}


// Final process: update context currentRoute from dispatch method \o/ !
dispatch({ type: "update-current-route", value: newRoute });

Expand Down

0 comments on commit fb285e1

Please sign in to comment.