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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug?]: Flakey Hydration Error Key 0-0-0-0-0-0-0-5 #1461
Comments
This is the issue that holding my development! any simple guide for me to contribute? |
<Show when={resource.loading}>Loading...</Show>
<Show when={resource.error}>Error: {resource.error.message}</Show>
<Show when={resource()}>
<div innerHTML={prettyPrintJson.toHtml(resource(), {})} />
</Show> This whole section might just be the cause of it. In general, I just can't recommend the use of |
Suspense doesn't seem to work either it just fallbacks regardless.
With an extra component WarStatus doing absolutely nothing:
The data is present btw. I tried console.logging it and it does fetch successfully. I could go completely React on this and manually taking over control flow, and it'd probably work, but I don't think that's how its supposed to be done in Solid. |
I found that this bug happens when there is a syntax/functional error, after fixing the error this bug will go away. Even if it not, I may hard refresh the page and its done |
Duplicates
Latest version
Current behavior 馃槸
I got a very simple setup, just ran "bun create solid" to try out solid, and then added a fetch call outside, the entire setup can be found here:
https://github.com/GustavBW/helldiving
99% of the code:
The culprit is something to do with the createResource signal, as when I remove it, everything works just fine. However, if it remains then sometimes, like 8/10 times, I get the aforementioned hydration error.
Stack trace:
(Also amazing error feedback btw)
I've also tested and confirmed that the pretty-print-json shenanigans I'm doing are not the culprit.
Interestingly, if I press the "reset error" button on the error prompt, everything works and the page loads in correctly. However, if I just reload the page, we're back to chance.
Expected behavior 馃
Not much really. Just a massive, failed html-ified json dump.
Steps to reproduce 馃暪
Steps:
Context 馃敠
I'm just trying to get started with Solid (coming from React)
Your environment 馃寧
The text was updated successfully, but these errors were encountered: