mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-04 22:16:53 +02:00
chore(store): format readme
This commit is contained in:
1 file changed
+2
-2
@@ -60,9 +60,9 @@ await store.set("some-key", { value: 5 });
|
|||||||
const val = await store.get<{ value: number }>("some-key");
|
const val = await store.get<{ value: number }>("some-key");
|
||||||
|
|
||||||
if (val) {
|
if (val) {
|
||||||
console.log(val);
|
console.log(val);
|
||||||
} else {
|
} else {
|
||||||
console.log("val is null");
|
console.log("val is null");
|
||||||
}
|
}
|
||||||
|
|
||||||
await store.save(); // this manually saves the store, otherwise the store is only saved when your app is closed
|
await store.save(); // this manually saves the store, otherwise the store is only saved when your app is closed
|
||||||
|
|||||||
Reference in new issue
Block a user