Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix(web): make memoFilterStore reactive by marking fields as observable
Stevenbfad0708e2c8
diff --git a/web/src/store/memoFilter.ts b/web/src/store/memoFilter.tsindex 16325763b..567779388 100644--- a/web/src/store/memoFilter.ts+++ b/web/src/store/memoFilter.ts@@ -7,6 +7,7 @@* Filters are URL-driven and shareable - copying the URL preserves the filter state.*/import { uniqBy } from "lodash-es";+import { makeObservable, observable, action } from "mobx";import { StandardState } from "./base-store";/**@@ -90,6 +91,15 @@ class MemoFilterState extends StandardState {*/constructor() {super();+ makeObservable(this, {+ filters: observable,+ shortcut: observable,+ addFilter: action,+ removeFilter: action,+ removeFiltersByFactor: action,+ clearAllFilters: action,+ setShortcut: action,+ });this.initFromURL();}