Skip to content

Commit

Permalink
Fix export of routeBlocker instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehtesham Hasnain authored and Ehtesham Hasnain committed Sep 27, 2020
1 parent 98a936e commit 654f3a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./route-blocker"
export { routeBlocker } from "./route-blocker"

export interface RoutesBlockingMap {
[route: string]: boolean;
Expand Down
4 changes: 1 addition & 3 deletions src/route-blocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,4 @@ class RouteBlocker {
}
}

const routeBlocker = new RouteBlocker();

export default routeBlocker;
export const routeBlocker = new RouteBlocker();

0 comments on commit 654f3a7

Please sign in to comment.