A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix(mobile): Disable the save button when bookmark is being saved
MohamedBassem1e0cce7e6f79
diff --git a/apps/mobile/app/dashboard/bookmarks/new.tsx b/apps/mobile/app/dashboard/bookmarks/new.tsxindex 50f8f2a7..51db6d97 100644--- a/apps/mobile/app/dashboard/bookmarks/new.tsx+++ b/apps/mobile/app/dashboard/bookmarks/new.tsx@@ -19,7 +19,7 @@ const NoteEditorPage = () => {const [error, setError] = useState<string | undefined>();const { toast } = useToast();- const { mutate: createBookmark } = useCreateBookmark({+ const { mutate: createBookmark, isPending } = useCreateBookmark({onSuccess: (resp) => {if (resp.alreadyExists) {toast({@@ -69,7 +69,7 @@ const NoteEditorPage = () => {autoCapitalize={"none"}textAlignVertical="top"/>- <Button onPress={onSubmit}>+ <Button onPress={onSubmit} disabled={isPending}><Text>Save</Text></Button></View>