Skip to content

Commit

Permalink
Minify filter’s listen() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jan 6, 2024
1 parent 84f1781 commit f6e7532
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions create-filter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ export function createFilter(client, Template, filter = {}, opts = {}) {
}

let stores = new Map()
filterStore.setKey('stores', stores)
let isLoading = true
filterStore.setKey('isLoading', true)
filterStore.setKey('isEmpty', true)

let list = []
filterStore.setKey('list', list)
filterStore.set({
isEmpty: true,
isLoading: true,
list,
stores
})

let channelPrefix = Template.plural + '/'

Expand Down

0 comments on commit f6e7532

Please sign in to comment.