[fix] stores other than app cannot be saved + build linting
This commit is contained in:
6
.vscode/tasks.json
vendored
6
.vscode/tasks.json
vendored
@@ -6,7 +6,7 @@
|
||||
{
|
||||
"label": "Dev Tauri",
|
||||
"type": "shell",
|
||||
"command": "pnpm tauri dev",
|
||||
"command": "bun tauri dev",
|
||||
"problemMatcher": [
|
||||
"$vite"
|
||||
],
|
||||
@@ -14,7 +14,7 @@
|
||||
{
|
||||
"label": "Build Tauri to nsis installer",
|
||||
"type": "shell",
|
||||
"command": "pnpm tauri build -b nsis",
|
||||
"command": "bun tauri build -b nsis",
|
||||
"problemMatcher": [
|
||||
"$vite"
|
||||
],
|
||||
@@ -22,7 +22,7 @@
|
||||
{
|
||||
"label": "Build Tauri",
|
||||
"type": "shell",
|
||||
"command": "pnpm tauri build",
|
||||
"command": "bun tauri build",
|
||||
"problemMatcher": [
|
||||
"$vite"
|
||||
],
|
||||
|
||||
@@ -4,11 +4,7 @@ import { useEffect } from "react"
|
||||
import { useSnapshot } from "valtio"
|
||||
|
||||
export default function Page() {
|
||||
useEffect(() => {
|
||||
;async () => {
|
||||
appStore.start()
|
||||
}
|
||||
}, [])
|
||||
appStore.start()
|
||||
const app = useSnapshot(appStore.state)
|
||||
|
||||
return (
|
||||
|
||||
@@ -4,11 +4,7 @@ import { useEffect } from "react"
|
||||
import { useSnapshot } from "valtio"
|
||||
|
||||
export default function Page() {
|
||||
useEffect(() => {
|
||||
;async () => {
|
||||
steamStore.start()
|
||||
}
|
||||
}, [])
|
||||
steamStore.start()
|
||||
const steam = useSnapshot(steamStore.state)
|
||||
|
||||
return (
|
||||
|
||||
@@ -4,11 +4,7 @@ import { steamStore, setDir, setCsDir, currentUser } from "@/store/steam"
|
||||
import { useEffect } from "react"
|
||||
import { useSnapshot } from "valtio"
|
||||
export default function Page() {
|
||||
useEffect(() => {
|
||||
;async () => {
|
||||
steamStore.start()
|
||||
}
|
||||
}, [])
|
||||
steamStore.start()
|
||||
const steam = useSnapshot(steamStore.state)
|
||||
return (
|
||||
<div
|
||||
|
||||
@@ -6,12 +6,7 @@ import { useSnapshot } from "valtio"
|
||||
import { use, useEffect, useState } from "react"
|
||||
|
||||
const LaunchOption = () => {
|
||||
useEffect(() => {
|
||||
;async () => {
|
||||
toolStore.start()
|
||||
}
|
||||
}, [])
|
||||
|
||||
toolStore.start()
|
||||
const { launchOptions, launchIndex } = useSnapshot(toolStore.state)
|
||||
|
||||
return (
|
||||
|
||||
@@ -6,11 +6,6 @@ import { useSnapshot } from "valtio"
|
||||
import { useEffect } from "react"
|
||||
|
||||
const Notice = () => {
|
||||
useEffect(() => {
|
||||
;async () => {
|
||||
appStore.start()
|
||||
}
|
||||
}, [])
|
||||
appStore.start()
|
||||
const app = useSnapshot(appStore.state)
|
||||
|
||||
|
||||
@@ -63,11 +63,7 @@ const Avatar = () => {
|
||||
}
|
||||
|
||||
const SideBar = () => {
|
||||
useEffect(() => {
|
||||
;async () => {
|
||||
appStore.start()
|
||||
}
|
||||
}, [])
|
||||
appStore.start()
|
||||
const { version } = useSnapshot(appStore.state)
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user