mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 20:01:46 +00:00
load item path on result mount
This commit is contained in:
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
// Custom hook to fetch raw file content on mount
|
||||
export default function useAxiosGet(fetchUrl: string): { content: string; error: string; validating: boolean } {
|
||||
export default function useAxiosGet(fetchUrl: string): { content: any; error: string; validating: boolean } {
|
||||
const [content, setContent] = useState('')
|
||||
const [validating, setValidating] = useState(true)
|
||||
const [error, setError] = useState('')
|
||||
|
||||
Reference in New Issue
Block a user