developit / developit/vhtml

SSR Memory leak

Open
#20 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
814
Forks
37
PR merge metrics
No merged PRs in 30d

Description

I recently added this package in our project and I was told it's causing memory leak in our prod env.

After reading the code, it seems like it's the `sanitized` cache that's causing the problem.

```javascript
sanitized[s] = true;
```

Every generated html string(`s`) would be stored in this cache, and it seems to have caused our server run out of memory and keeps restarting.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.