mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
chore(): sync with main
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user