Skip to content

Commit

Permalink
fix: make hook compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 1, 2020
1 parent 912074f commit 2b5e61b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/store/src/state/context/document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,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 2b5e61b

Please sign in to comment.