I know that I'm lack of knowledge about nodejs memory management, but this line looks suspicious. If I use this library with SSR for example nextjs some memory snapshots shows batch.js file. Can this line be done in the way that it could be garbage collected?
|
const cache = new WeakMap(); |
I know that I'm lack of knowledge about nodejs memory management, but this line looks suspicious. If I use this library with SSR for example nextjs some memory snapshots shows batch.js file. Can this line be done in the way that it could be garbage collected?
react-easy-state/src/batch.js
Line 31 in e7a1f85