Refactor memory leak by setInterval code gatsby dev-ssr #36688
Labels
status: needs reproduction
This issue needs a simplified reproduction of the bug for further troubleshooting.
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
The code give me a problem to get a good result in the compilation of dev-ssr
Reproduction Link
https://github.com/noreproductionlinkprovided
Steps to Reproduce
...
Expected Result
Compilation ssr should to pass correctly
Actual Result
memory leak due to setInterval and too much pass attempt
In actual code setInterval can run again before the stream finish for a big render-page
Environment
Config Flags
DEV_SSR:true
code problem:
gatsby/packages/gatsby/src/utils/dev-ssr/render-dev-html.ts
Lines 113 to 136 in a629551
My Resolution
increment readAttempts and remove setInterval
The text was updated successfully, but these errors were encountered: