alphaβiota
alphaβiota
Explore posts from servers
TTCTheo's Typesafe Cult
Created by alphaβiota on 6/9/2024 in #questions
Hi, First Post, Sharing a pattern I've found for RSC to ClientSide state
Hi, anyone else stumble upon this pattern for having the server state initially available when a Client Component loads, and then overwriting it with reactivity latter? I use $state with $ to denote $erver State, to keep it visually separate from client states. Seems like I have been able to have the best of both worlds with this method, no rerender flicker nor skeleton loader needed. But there's got to be a downside or something that I haven't encountered yet. Trying to poke holes in this approach to make sure it's sound before I use it all over the place. Any hole pokers out there? Thanks message was too long, replying with code ....
2 replies
CDCloudflare Developers
Created by alphaβiota on 11/7/2023 in #general-help
CF Images 30s Read Request Timeout. Status 408
5 replies
CDCloudflare Developers
Created by alphaβiota on 10/21/2023 in #general-help
Images: Direct Creator Upload Error 5408
If the image size is large enough but still way under the size limit (occurs with images 3MB and up), the upload doesn't happen fast enough it seems. The response error seems to indicate that the connection might be timing out on the CloudFlare server:
json {
"result": null,
"success": false,
"errors": [
{
"code": 5408,
"message": "The upload failed to send due to a slow connection. Check your internet connection and try again."
}
],
"messages": []
}
json {
"result": null,
"success": false,
"errors": [
{
"code": 5408,
"message": "The upload failed to send due to a slow connection. Check your internet connection and try again."
}
],
"messages": []
}
I am using XHR to track the progress of the upload which seems to complete at 100% but this final response from CloudFlare server indicates that the upload failed. Any ideas what might be going on and how to fix? Thank you
1 replies