Skip to content

Commit

Permalink
fix(useFileSubscribe): correct typing of hook output
Browse files Browse the repository at this point in the history
  • Loading branch information
liamross committed Nov 20, 2020
1 parent 9c3d65b commit 953a352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useFileSubscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ export function useFileSubscribe<F extends FileLike, T>(
};
}, [eventType, file]);

return useMemo(() => [value, error, setValue], [error, value]);
return useMemo(() => [value, error, setValue] as const, [error, value]);
}

0 comments on commit 953a352

Please sign in to comment.