#Retching query inside Suspense resets focus

4 messages · Page 1 of 1 (latest)

olive creek
#

I have an input and a query output inside a suspense boundry.

Whenever the query updates (provoked here with the interval, but issue is the same when setting an refetch interval), the input looses its focus.
I don't think its solid rerendering the input, as the uncontroller input value is being kept.

When i move the input outside of the suspsense, the focus is not lost.
The native createResource also does not have this issue.

Is it supposed to behave like that or is that a bug perhabs?

Reproduction:
https://stackblitz.com/edit/solid-vite-fog4ab?file=src/index.tsx

StackBlitz

Starter project for Node.js

frigid void
#

Hey there! Thanks for the detailed reproduction of this. This is a bug that will be fixed in v5. Could you create an GitHub issue for this? I'll patch it in v4 too! Apologies for the unexpected behavior here

olive creek
#

oh wow sorry, didnt notice the reply. Thought I had this followed and discord would notify me. Thanks for the info, will file an github issue