mirror of
https://github.com/whekin/household-bot.git
synced 2026-04-01 05:14:03 +00:00
refactor(miniapp): add rewrite foundation and demo fixtures
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
/* @refresh reload */
|
||||
import { QueryClientProvider } from '@tanstack/solid-query'
|
||||
import { render } from 'solid-js/web'
|
||||
|
||||
import { miniAppQueryClient } from './app/query-client'
|
||||
import './index.css'
|
||||
import App from './App'
|
||||
|
||||
@@ -10,4 +12,11 @@ if (!root) {
|
||||
throw new Error('Root element not found')
|
||||
}
|
||||
|
||||
render(() => <App />, root)
|
||||
render(
|
||||
() => (
|
||||
<QueryClientProvider client={miniAppQueryClient}>
|
||||
<App />
|
||||
</QueryClientProvider>
|
||||
),
|
||||
root
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user