We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0b30e commit 57105d5Copy full SHA for 57105d5
packages/react/src/hooks/useIonLoading.tsx
@@ -18,15 +18,15 @@ export function useIonLoading(): UseIonLoadingResult {
18
19
const present = useCallback(
20
(
21
- messageOrOptions: string | (LoadingOptions & HookOverlayOptions) = '',
+ messageOrOptions: string | (LoadingOptions & HookOverlayOptions) = {},
22
duration?: number,
23
spinner?: SpinnerTypes
24
) => {
25
if (typeof messageOrOptions === 'string') {
26
return controller.present({
27
message: messageOrOptions,
28
duration,
29
- spinner: spinner ?? 'lines',
+ spinner,
30
});
31
} else {
32
return controller.present(messageOrOptions);
0 commit comments