Skip to content
Permalink
Browse files

demo a memory leak

  • Loading branch information
nolanlawson committed Feb 16, 2020
1 parent 2edbd47 commit de6ca2d85334ad5f657ddd0f335750b60afab895
Showing with 17 additions and 0 deletions.
  1. +17 −0 src/routes/_pages/notifications/index.html
@@ -21,8 +21,25 @@ <h1>Notifications</h1>
import TimelinePage from '../../_components/TimelinePage.html'
import NotificationFilters from '../../_components/NotificationFilters.html'

class SomeObject {
constructor () {
this.dict = {}
for (let i = 0; i < 1000; i++) {
this.dict[Math.random()] = Math.random()
}
}
}

export default {
store: () => store,
oncreate () {
const someObject = new SomeObject()
const onMessage = () => {
this.foo = 'foo'
this.bar = someObject
}
window.addEventListener("message", onMessage)
},
components: {
FreeTextLayout,
HiddenFromSSR,

0 comments on commit de6ca2d

Please sign in to comment.
You can’t perform that action at this time.