An app for logging board climbs
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: issue where library refresh has timing issue

+6
+6
www/routes/library.ts
··· 15 15 this.renderList() 16 16 libEmitter.addEventListener('filter', this.#onFilter) 17 17 this.addEventListener('click', this.#handleClick) 18 + app.store.addEventListener(this.#onStoreUpdate) 18 19 } 19 20 20 21 disconnectedCallback() { 21 22 libEmitter.removeEventListener('filter', this.#onFilter) 22 23 this.removeEventListener('click', this.#handleClick) 24 + app.store.removeEventListener(this.#onStoreUpdate) 23 25 } 24 26 25 27 #onFilter = () => { 28 + this.renderList() 29 + } 30 + 31 + #onStoreUpdate = () => { 26 32 this.renderList() 27 33 } 28 34