AyushOriginal post
Rank 1: Thread
current
https://cloud.appwrite.io/v1/account/sessions/current
account
https://cloud.appwrite.io/v1/account
Plain text
export const client=new Client()
client.setEndpoint(process.env.REACT_APP_ENDPOINT).setProject(process.env.REACT_APP_PROJECT)
export const account=new Account(client)export const databases=new Databases(client)export const storage=new Storage(client)```Summary
The user was experiencing an issue with infinite network requests being made for current and account. The solution was to add a dependency array to the useEffect hook. This resolved the issue.
The code provided shows the usage of the `account.getSession()` and `account.get()` API calls. The issue was occurring in these API calls.
The user also mentioned that there were 1572 network requests being made for current and account, with over 3000 requests in total.
The code snippet provided contains imports for the Appwrite client, account, databases, and storage.