You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When createResource throws an error (e.g. rejects a promise), the hydration mismatch error is thrown.
Another thing to notice here: there's no hydration mismatch if createResource throws an error without a promise (e.g. without async). It feels like the behavior should be unified no matter whether it returns a promise or not.
Thank you for reporting. Synchronous resolution of values work but errors from serialization. Which means that loading states are breaking hydration. Will get this fixed up.
Describe the bug
When
createResource
throws an error (e.g. rejects a promise), the hydration mismatch error is thrown.Another thing to notice here: there's no hydration mismatch if
createResource
throws an error without a promise (e.g. withoutasync
). It feels like the behavior should be unified no matter whether it returns a promise or not.Your Example Website or App
https://stackblitz.com/edit/solid-ssr-vite-81jsyh?file=src/routes/index.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
There should be no error during hydration.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: