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
// src/api/search.tsexportasyncfunctionGET(){// purposefully simplified for this bug reportreturn["some","results"];}
Context 🔦
I am writing a search component sitting at the top of the layout. On every page, the user should be able to type a search criteria and see matching results. I'm using useSearchParams so that the search results are still visible if the user opens a link that contains the search criteria.
Duplicates
Latest version
Current behavior 😯
createResource
fails at the hydration phase. If you look at the example given below, the search count is empty and the<For>
list throws an error:If you open the page source, you will notice that the data is present at the bottom of the page:
Expected behavior 🤔
Solid has the API response but is not able to hydrate the component. Using the input field triggers API calls and works fine afterwards.
Steps to reproduce 🕹
Context 🔦
I am writing a search component sitting at the top of the layout. On every page, the user should be able to type a search criteria and see matching results. I'm using
useSearchParams
so that the search results are still visible if the user opens a link that contains the search criteria.Your environment 🌎
The text was updated successfully, but these errors were encountered: