Skip to content

Commit

Permalink
correctly name the export
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Feb 22, 2021
1 parent 25c05cd commit fb8045a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preact-iso/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ Router.Provider = LocationProvider;
LocationProvider.ctx = createContext(/** @type {{ url: string, path: string, query: object, route }} */ ({}));
const RouteContext = createContext({});

export const useLocaction = () => useContext(LocationProvider.ctx);
export const useLocation = () => useContext(LocationProvider.ctx);
export const useRoute = () => useContext(RouteContext);

0 comments on commit fb8045a

Please sign in to comment.