-
Notifications
You must be signed in to change notification settings - Fork 393
[Bug?]: Transition makes it impossible to show loading screen for long-running backend processes #1870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Question was answered on discord, pasting answers for SEO of future people having this issue:
|
Don't know if you want this issue open to track finding a better solution? But I'm good with the workaround for now. |
Duplicates
Latest version
Context 🔦
I have a very long-running process on the backend (it involves starting up a browser at an arbitrary URL and collecting some data from the page, then asking an LLM about it) which takes roughly 10-30s.
I would like to keep using the super-simple backend/frontend integration that solid start provides (which blew my mind). Right now it works great in the initial pageload, however, when the user changes their input, solid's router inadvertently starts a transition around my app, which leads to my loading screen not being displayed.
A workaround is to also displaying my loading screen when
useIsRouting()
is true, but my loading screen shows the user exactly what steps is in progress and therefore I need to be able to know whichcreateAsync
/createResource
is loading.Due to the cursed transition this is impossible. I can't use individual
<Suspense>
s nor can I use.loading
of a resource, as everything is lying during a transition.Steps to reproduce 🕹
Steps:
Current behavior 😯
After the user presses "submit", NOTHING happens until the result is displayed after 10s.
Expected behavior 🤔
"We are loading…" is displayed again until the next response shows up
Yet unanswered thread in discord: https://discord.com/channels/722131463138705510/910635844119982080/1353843298019835986
The text was updated successfully, but these errors were encountered: