Skip to main content

JS Memory Leaks

Finding Memory Leaksโ€‹

For memory leaks, see node-memwatch. Use the โ€”inspect flag to make and compare heap snapshots.

Causes of Memory Leaksโ€‹

Mobx (mobx-react)โ€‹

import { useStaticRendering } from "mobx-react";

const App = (props, railsContext) => {
const { location, serverSide } = railsContext;
const context = {};

useStaticRendering(true);