Whole page component rerenders in default Solid-Start project
When I'm trying to use input field, the whole page rerender after loading data from resource, causing input to lost focus.
How to reproduce:
1. Start new solid start project (
pnpm create solid && pnpm install)
2. create does-rerender route: ( file: src/routes/does-rerender.tsx): (it's from tutorial)
3. Start server: pnpm dev
After typing 1 Luke Skywalker record is shown, but whole page rerenders and input does lost focus4 Replies
There's a
Suspense boundary at app.tsx and it's rendering fallback because user resource is accessed and reloads in response to userId getting set, which is expected. If you need to contain the resource, simply wrap it with another Suspense boundary.
🤦♂️ sometimes I'm so stupid, makes sense, will try 🍰
that's most of us
sometimes 🤣works as expected now 🙂 thanks again for help