MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / refresh

Function refresh

packages/app-core/src/components/QuickCaptureApp.tsx:270–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268 useEffect(() => {
269 let alive = true
270 const refresh = (): void => {
271 void window.zen.listNotes().then((all) => {
272 if (!alive) return
273 setNotes(all.filter((n) => n.folder !== 'trash'))
274 })
275 }
276 refresh()
277 const off = window.zen.onVaultChange(() => refresh())
278 return () => {

Callers 1

QuickCaptureAppFunction · 0.70

Calls 1

listNotesMethod · 0.65

Tested by

no test coverage detected