ryansolid
Reactive array transformation
Yeah this is an interesting topic in a wider sense. I going to think through it. The challenge is there are varying degrees of solutions in this space. You can always take the immutable route but the mutable route is often more optimal but requires rethinking of logic. I need to think about where it is applicable and how one would know.
6 replies
Solid SSR Setup
Sorry I meant this: https://github.com/solidjs/solid/tree/main/packages/solid-ssr
6 replies
Sevoral Error while using AbortController
I'm not seeing anything returned in the example is why I ask. This looks like client code awaiting some preview_image function. That one could be a server function but the abort controller is on the outside. If this is server code hitting a different server then I'd expect something being returned..
9 replies
modern equivalent of `createRouteData()`
That's interesting.. revalidation from actions should override any of the caching. The 5 second thing is just to dedupe during the length of a request but actions basicaly 0 the cache and refetch immediately. In the same way createRouteAction did it before.
cache + createAsync is the replacement. If it isn't working as expected we should look at that.
11 replies
Sevoral Error while using AbortController
I'm lacking context here to see the whole picture or the error. It would only get to seroval if it was being sent back to be serialized and if this is just some client logic against an API endpoint I don't know why seroval would be involved.
9 replies
How does Transition API and createAsync interact?
startTransition is what starts it. We start collection all the changes downstream of anything set during that scope, forking it from the main (visible graph). As it propagates if we hit any async resources we associate them with the Transition and finally when all of those async things done we can commit all the changes back to the main graph.
7 replies
How does Transition API and createAsync interact?
Yeah what is interesting about async functions is from the outside whether there is 1 await or 10 you only see one promise. It makes sense but everything after the first await basically becomes squashed from the outside.
7 replies
How to catch all errors but keep rendered component?
If an ErrorBoundary is triggered it means part of the app couldn't be properly rendered. Keeping that part rendered would have indeterminate behavior. We offer ErrorBoundary as a way to define zones where this can be managed. But not being able to be rendered while containable is not recoverable state otherwise.
3 replies
How does Transition API and createAsync interact?
Until the transition is committed anything outside it's execution will read the old value. The problem here is we can't restore the Transition after the await. Not until we get the returned result. There is no mechanism in JavaScript that let's us intercept there. Usually this isn't a problem as createAsync like createMemo is meant to be pure.. ie no writing other state inside it.
7 replies
Potential upstream problem in solid for users of Astro + solid + cloudflare?
We are reviewing the features going into 1.9 right now. https://discord.com/channels/722131463138705510/780502110772658196/1280551507774672906
49 replies