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
very simple createRouteData example below will cause some infinite loop and a number of errors reported on server:
import{createRouteData}from'solid-start';asyncfunctionsleep(ms: number){returnnewPromise((resolve)=>setTimeout(resolve,ms));}exportdefaultfunctionTest(){constdata=createRouteData(async()=>{// comment line below, and all works fine constresponse=awaitfetch('/api/test');awaitsleep(2000);return'Test';});return<div>{data()}</div>;}
It seems to choke on relative URLs, http://localhost/api/test works fine, /api/test does not.
Another thing I observed is that page doesn't immediately show, it waits for 2 seconds.
Expected behavior 🤔
Waiting for an async fetch to finish shouldn't cause some infinite loop
Also the page should not wait 2 seconds before displaying anything.
In setting up for SolidStart's next Beta Phase built on Nitro and Vinxi we are closing all PRs/Issues that will not be merged due to the system changing. If you feel your issue was closed by mistake. Feel free to re-open it after updating/testing against 0.4.x release. Thank you for your patience. See #1139 for more details.
Duplicates
Latest version
Current behavior 😯
very simple
createRouteData
example below will cause some infinite loop and a number of errors reported on server:It seems to choke on relative URLs,
http://localhost/api/test
works fine,/api/test
does not.Another thing I observed is that page doesn't immediately show, it waits for 2 seconds.
Expected behavior 🤔
Waiting for an async fetch to finish shouldn't cause some infinite loop
Also the page should not wait 2 seconds before displaying anything.
Steps to reproduce 🕹
Steps:
Test
with above exampleContext 🔦
No response
Your environment 🌎
The text was updated successfully, but these errors were encountered: