chore(): sync with main

This commit is contained in:
Liam DeBeasi
2021-10-22 15:24:34 -04:00
92 changed files with 66506 additions and 19097 deletions

View File

@ -50,13 +50,10 @@ export function useController<OptionsType, OverlayType extends OverlayBase>(
[controller]
);
const dismiss = useCallback(
() => async () => {
overlayRef.current && (await overlayRef.current.dismiss());
overlayRef.current = undefined;
},
[]
);
const dismiss = useCallback(async () => {
overlayRef.current && (await overlayRef.current.dismiss());
overlayRef.current = undefined;
}, []);
return {
present,