Repository navigation
flags@4.5.2
·
3 commits
to main
since this release
Patch Changes
- #631
a9261aaThanks @dferber90! -flags/next: a flag inside a cache scope, e.g."use cache"orunstable_cache(), now fails with a clear error: "A flag can not be evaluated inside a cache scope … Evaluate the flag outside of the cached function, and pass the value in as an argument." The error of Next.js is itscause. Before, it failed with the error ofheaders(). The SDK also usesunstable_rethrowof Next.js to recognize the internal errors of Next.js, e.g. ofredirect(), which it must throw again. The peer dependency onnextis now>=15.0.0, the first version withunstable_rethrow. Next.js 14 is out of support.