Next.js Discord

Discord Forum

unstable_ meaning

Unanswered
Pink salmon posted this in #help-forum
Open in Discord
Pink salmonOP
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?

3 Replies

Pink salmonOP
Why not let them exist at the same time? The API of unstable_cache seems to have been a standard in most backend frameworks.
@Pink salmon 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