mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
refactor: simplify solid reactivity across app and web (#20497)
This commit is contained in:
parent
db93891373
commit
d540d363a7
8 changed files with 70 additions and 67 deletions
|
|
@ -329,10 +329,9 @@ export default function Page() {
|
|||
const { params, sessionKey, tabs, view } = useSessionLayout()
|
||||
|
||||
createEffect(() => {
|
||||
if (!untrack(() => prompt.ready())) return
|
||||
prompt.ready()
|
||||
if (!prompt.ready()) return
|
||||
untrack(() => {
|
||||
if (params.id || !prompt.ready()) return
|
||||
if (params.id) return
|
||||
const text = searchParams.prompt
|
||||
if (!text) return
|
||||
prompt.set([{ type: "text", content: text, start: 0, end: text.length }], text.length)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue