mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 00:16:51 +00:00
Make edits to AST and then use formatter
This commit is contained in:
@@ -59,18 +59,10 @@ export function SpyglassProvider({ children }: { children: ComponentChildren })
|
||||
const { version } = useVersion()
|
||||
const [client] = useState(new SpyglassClient())
|
||||
|
||||
const { value: service, error } = useAsync(() => {
|
||||
const { value: service } = useAsync(() => {
|
||||
return client.createService(version)
|
||||
}, [client, version])
|
||||
|
||||
useEffect(() => {
|
||||
if (error) {
|
||||
console.warn(error)
|
||||
}
|
||||
}, [error])
|
||||
|
||||
console.log('->', service)
|
||||
|
||||
const value: SpyglassContext = {
|
||||
client,
|
||||
service,
|
||||
|
||||
Reference in New Issue
Block a user