Skip to content

Commit

Permalink
fix: recoil useGetDocument hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 1, 2020
1 parent a009f4c commit 9888977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/store/src/state/recoil/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export const useDocument = (docId: string) => {
return store.docs[docId];
};

export const useGetDocument = () => (docId: string) => {
export const useGetDocument = () => {
const store = useStore();
return store.docs[docId];
return (docId: string) => store.docs[docId];
};

/**
Expand Down

0 comments on commit 9888977

Please sign in to comment.