#SSG keeps increasing memory usage client-side until page refresh

2 messages · Page 1 of 1 (latest)

abstract iron
#

When using SSG in my dynamic page (there is 1000 or more of them), when user is navigating client-side, memory usage would be increasing on every page visit. It seems like every SSG page render is storing the results in memory for later use. The issue is that the pages are storing around 1mb of memory each (kinda of required for this project), and it keep increasing for user when navigating client-side. Is there a way to prevent this "caching" from happening at all, or limit the amount of elements that will be store client-side?

Maybe Im not quite understanding what is really happening here? When switching to SSR problem is gone, but I would like to try SSG in this case.

Screenshot shows memory usage in 2 snapshots. One was before I started visiting different pages with client-side navigation.

celest oyster
#

this is during dev? Definitely worth opening an issue