Add pre-fetching on hover with a small segment data cache

This commit is contained in:
Ajay
2024-09-02 03:22:33 -04:00
parent e181c64775
commit dbf80b4929
5 changed files with 157 additions and 55 deletions

View File

@@ -23,8 +23,6 @@ export function asyncRequestToCustomServer(type: string, url: string, data = {},
export async function asyncRequestToServer(type: string, address: string, data = {}, headers = {}): Promise<FetchResponse> {
const serverAddress = Config.config.testingServer ? CompileConfig.testingServerAddress : Config.config.serverAddress;
console.log(address, headers)
return await (asyncRequestToCustomServer(type, serverAddress + address, data, headers));
}