next.js
a234c26c - Fix dev getStaticPaths/generateStaticParams calling (#48322)

Commit
2 years ago
Fix dev getStaticPaths/generateStaticParams calling (#48322) Since exiting in `setTimeout()` can cause a race condition with sending the result from the worker and we don't want to destroy workers when trying to leverage them as it has a perf impact this ensures we create unique workers per usage and destroy them afterwards. x-ref: https://github.com/vercel/next.js/pull/47716 Fixes: https://github.com/vercel/next.js/issues/48061
Author
Parents
Loading