[fix] stores other than app cannot be saved + build linting
This commit is contained in:
@@ -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