fix: 🐛 No computed on declared var

This commit is contained in:
ThatOneCalculator 2022-08-09 16:13:53 -07:00
parent 4f0030ecc8
commit 3fd553b82b
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "misskey", "name": "misskey",
"version": "12.118.1-calc.rc.9.3", "version": "12.118.1-calc.rc.9.4",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -50,7 +50,7 @@ let queue = $ref(0);
let srcWhenNotSignin = $ref(isLocalTimelineAvailable ? 'local' : 'global'); let srcWhenNotSignin = $ref(isLocalTimelineAvailable ? 'local' : 'global');
let src = $computed({ get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin), set: (x) => saveSrc(x) }); let src = $computed({ get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin), set: (x) => saveSrc(x) });
if (!enableGuestTimeline) { if (!enableGuestTimeline) {
src = $computed({}); src = {};
} }
watch ($$(src), () => queue = 0); watch ($$(src), () => queue = 0);