mirror of https://github.com/usememos/memos
fix(web): refresh sidebar tags when creating/updating memos
The sidebar tag list wasn't updating when users created new memos with tags or modified existing memo tags. This was because useFilteredMemoStats hook only refetched when filter/state/orderBy changed. Now the hook observes memoStore.state.stateId, which changes whenever memos are created, updated, or deleted. This triggers automatic refetch and the sidebar updates immediately with the latest tag counts. Fixes tag refresh issue in sidebarmain
parent
cabd0d61c6
commit
edfbd6b073
Loading…
Reference in New Issue