Releases: Jaaneek/useFilePicker
Releases · Jaaneek/useFilePicker
v2.1.2
- Wrapped
openFilePicker
in useCallback #87
useFilePicker
hook will now return the same function if you memoize the hook props:
const ufpProps = useMemo(() => ({ accept: "*", multiple: true }). []);
const { openFilePicker } = useFilePicker(ufpProps);
// openFilePicker is always gonna stay the same so you can pass it as a dependency to other hooks