mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 08:14:07 +02:00
add note
This commit is contained in:
@@ -162,6 +162,7 @@ export class PreferencesManager {
|
||||
this.r[key].value = this.s[key] = v;
|
||||
}
|
||||
|
||||
// TODO: desync対策 cloudの値のfetchが正常に完了していない状態でcommitすると多分値が上書きされる
|
||||
public commit<K extends keyof PREF>(key: K, value: ValueOf<K>) {
|
||||
const v = JSON.parse(JSON.stringify(value)); // deep copy 兼 vueのプロキシ解除
|
||||
|
||||
|
||||
Reference in New Issue
Block a user