Next.js Discord

Discord Forum

NextJS 15 http client

Answered
Korat posted this in #help-forum
Open in Discord
Avatar
KoratOP
With the arrival of Next 15, does that mean I can use any http client provider like ky, or axios, redaxios or is it still suggested to use fetch ?
Answered by B33fb0n3
I am using fetch for api routes and when I access my database I am using drizzle and their functions
View full answer

12 Replies

Avatar
you can use the same functionalities that you used before. There is nearly no change
Avatar
KoratOP
Yeah, but you know that 'fetch' was pushed because of caching abilities, If i were to start using ky, would I have any problems ?
Avatar
yea, they changed the caching mechanism from the fetch function. Fetch requests are no longer cached by default. But that won't change which software you using
Avatar
KoratOP
Aight, may I ask what you are using now ?
Avatar
I am using fetch for api routes and when I access my database I am using drizzle and their functions
Answer
Avatar
KoratOP
Okay, thanks a lot
Avatar
Asian black bear
Shameless self-plug: https://www.adios-axios.com/
Avatar
happy to help
Avatar
KoratOP
Happy to know that NextJs has listened to us and removed caching by default feature lol
Avatar
By the way ky uses fetch behind the scenes, so… you get the same benefits you would get with fetch
Avatar
KoratOP
@joulev yeah, learned it today xd
Avatar
KoratOP
@Asian black bear I feel more confident on creating erp's that are fully dynamic because of cache changes, I would like to get an opinion from you sir