unstable_ meaning
Unanswered
Atlantic cod posted this in #help-forum
Atlantic codOP
https://nextjs.org/docs/app/api-reference/functions/unstable_cache
I was always thinking that "unstable" means not production-ready and will cause weird issues in the production environment.
But I reread this again, and it seems like "unstable" means the API will change in the future.
So my question is, functionality-wise, is it really production-ready, meaning it will not cause runtime issues?
I was always thinking that "unstable" means not production-ready and will cause weird issues in the production environment.
But I reread this again, and it seems like "unstable" means the API will change in the future.
So my question is, functionality-wise, is it really production-ready, meaning it will not cause runtime issues?
3 Replies
@Atlantic cod https://nextjs.org/docs/app/api-reference/functions/unstable_cache
I was always thinking that "unstable" means not production-ready and will cause weird issues in the production environment.
But I reread this again, and it seems like "unstable" means the API will change in the future.
So my question is, functionality-wise, is it really production-ready, meaning it will not cause runtime issues?
Me, along with many people, are using this
unstable_cache api in production and it is fairly stable. However, it is being deprecated in the favour of "use cache" directive which is still only present in canary builds and is highly experimentalAtlantic codOP
Why not let them exist at the same time? The API of unstable_cache seems to have been a standard in most backend frameworks.
@Atlantic cod Why not let them exist at the same time? The API of unstable_cache seems to have been a standard in most backend frameworks.
the API will continue to exist until many major versions down the road but they are now working on the new use cache directive which gives more control and flexibility