Skip to content

initializeBindings: false and memory leak fixes

Compare
Choose a tag to compare
@matthewp matthewp released this 07 May 18:01
· 56 commits to master since this release

This release fixes memory leaks and provides a new option to use with SSR. When initializing a component that might never be added to the page, using {initializeBindings: false} will prevent bindings from being setup until it is.

let component = new MyComponent({
  initializeBindings: false
});

// Doesn't leak if not inserted!