NextJS 15 http client
Answered
Korat posted this in #help-forum
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
12 Replies
you can use the same functionalities that you used before. There is nearly no change
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 ?
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
KoratOP
Aight, may I ask what you are using now ?
I am using fetch for api routes and when I access my database I am using drizzle and their functions
Answer
KoratOP
Okay, thanks a lot
Asian black bear
Shameless self-plug: https://www.adios-axios.com/
happy to help
KoratOP
Happy to know that NextJs has listened to us and removed caching by default feature lol
By the way ky uses fetch behind the scenes, so… you get the same benefits you would get with fetch
KoratOP
@joulev yeah, learned it today xd
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